How to change email processing order from old to new?

Hi, by default emails are processed from new to old, how can I change the order and processes from old to new ?

Thanks
Gary

Replace for each mail in mailList with while

n= mailList.Messages.Count
while (n>=1)
{
n = n-1
Process(mailList(n))
}