[eluser]Bogdan Tanase[/eluser]
Hi,
thanks for the responses but ...
the table is generated using a DB query, but after that, new fields are added, values are calculated using data from different sources; basically i'm creating a completly new result set, impossible to get directly from SQL, so sorting in query is not an option.
Besides, I'm talking about tables with 100-200 records (the result set) so, I don't think an array sorting will take too long. It should be done in memory, so I expect it to be fast!
I thought of creating a temporary mysql table with the calculated results and then sort with SQL that table and display it, but it doesn't sound "right" to me...