reorder results of mysql query php -


i run mysql query gets specific results table. want print these results in 2 html tables. first ordered 1 column done putting order mysql query. want print results ordered different column. however, don't want run mysql query again slow.

so sum up: there way reorder results of mysql query?

(sorry if question unclear, first time using site.)

php has great sorting functions. make user-defined sorting function , use result set:

http://php.net/manual/en/function.usort.php

sorting php fast. faster 2nd query if result set not large.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -