How to change email processing order from old to new?

email

#1

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

Thanks
Gary


#2

Replace for each mail in mailList with while

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