You are here: Re: [PHP] Another array sorting Problem « PHP « IT news, forums, messages
Re: [PHP] Another array sorting Problem

Posted by Richard Lynch on 04/19/05 05:49

Use SQL in your query that looks like:

ORDER BY kat, Rowid

in the first place?


On Sat, April 16, 2005 5:51 pm, Webmaster said:
> Hi,
>
> I have a multidimensional array looking linke this
>
> Rowid title kat
> 123 nr1 3
> 442 nr2 2
> 547665 nr3 5
> 4532 nr4 3
> 3244 nr5 1
> 124 nr6 2
> 776 nr7 4
>
> I now need to sort that array first by kat and second on rowid, so it
> would
> throw out:
>
> Nr5
> Nr6
> Nr2
> Nr1
> Nr4
> Nr7
> Nr3
>
> I tried to achieve that goal with array_multiosort(), but all I got was a
> one way (either rowid or kat) sorting.
>
> Do you know some kind of way to achieve my goal?
>
> Thabk you for helping.
> Mirco Blitz
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация