Re: Another array sorting Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux