imap reverse sorting

Discussion in 'PHP' started by decepti0n, Aug 16, 2007.

  1. #1
    Is there a way to order the mailboxes by time received, in descending order? (newest first)

    Right now it's the oldest first, and the only other way I can think of is to load it in an array and reverse that, then loop the array and output it

    Any help would be great, thanks
     
    decepti0n, Aug 16, 2007 IP
  2. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hah, nevermind, already figured it out.

    Change the loop from
    for ($x = 1; $x <= $info->Nmsgs; $x++) {
    PHP:
    to
    for ($x = (int) $info->Nmsgs; $x >= 1; $x--) {
    PHP:
     
    decepti0n, Aug 16, 2007 IP