how to order the usernames out of a table by the alphbet
Posted 13 July 2006 - 10:23 PM
Posted 13 July 2006 - 10:27 PM
sort($arrayName);Now arrayName will be sorted alphabetically, magic.
Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd
Posted 14 July 2006 - 05:27 PM
and yes, i know this post has strayed off-topic, but i figured i'd point it out while sort() was being mentioned.
Posted 14 July 2006 - 05:41 PM
i ended up using natcasesort(), and it fixed the issue.
Posted 14 July 2006 - 05:44 PM
Be careful when sorting arrays with mixed types values because sort() can produce unpredictable results.
Looks like sort would do the job for just text though.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users