[thelist] php - sorting multidimensional arrays

Paul Bennett paul at web-business-pack.com
Tue Sep 28 15:03:28 CDT 2004



Phil Cooper wrote:

>
>Thanks for that - I'll have a read and see if I can understand it.  
>

Just give us a yell if you can't

>Would this method allow you to sort say by 'wins' and then by 'pf'?
>  
>
a 'group by' clause in your sql statement would allow this. (sql guru's 
shout out now if I'm wrong)

>Not all the data in the arrays is direct from the mysql table.  I had thought about doing the data manipulation and then sending it to a new table and then querying that using ORDER BY but thought it must be possible to do the sorting in php so I didn't have to query the database twice.  Out of interest which method is more programmatically correct?
>  
>



More information about the thelist mailing list