Posted by Alvaro G Vicario on 08/26/05 15:43
*** Karin Jensen wrote/escribió (Fri, 26 Aug 2005 10:40:03 +0100):
> Is it possible to sort the contents of $results? I wish to use a
> regex-based sort order that you can't do in Access 2000* SQL with
> "ORDER BY".
I haven't checked the manual but I guess odbc_*() functions do now allow
custom sorting. However, there're array functions that allow such task. So
you'd need to load all results into an array. I hope the query doesn't
return 10,000 records ;-)
uasort()
uksort()
usort()
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
[Back to original message]
|