It looks sorted to me. You get message 12, 23, and then 25. How exactly
do you want it to look?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Haseeb Iqbal [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 9:17 PM
> To: PHP General
> Subject: [PHP] Help in sorting
> 
> hi,
> i want to sort messages in a sequence
> the sequence is "23,12,25" (these are message nos)
> now when i call  like this
> 
> $nMsgSeq="23,12,25";
> imap_fetch_overview($pIMAP,$nMsgSeq,0);
> i get an array sorted like
> 
> Array
> (
>     [0] => stdClass Object
>         (
>             ....            [uid] => 21
>             [msgno] => 12
>             [recent] => 0
>             [flagged] => 0
>             [answered] => 0
>             [deleted] => 0
>             [seen] => 1
>             [draft] => 0
>         )
> 
>     [1] => stdClass Object
>         (
>             [uid] => 34
>             [msgno] => 23
>             [recent] => 0
>             [flagged] => 0
>             [answered] => 0
>             [deleted] => 1
>             [seen] => 1
>             [draft] => 0
>         )
> 
>     [2] => stdClass Object
>         (
>             [uid] => 36
>             [msgno] => 25
>             [recent] => 0
>             [flagged] => 0
>             [answered] => 0
>             [deleted] => 1
>             [seen] => 1
>             [draft] => 0
>         )
> 
> )
> 
> i want the array just like the sequence what should i do?
> 
> Friendship is always a sweet responsibility, never an opportunity.
> HaSeEb IqBaL.
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to