Wow! natsort()

Wow! I just found a really cool PHP function: natsort(). It's a natural (smart) sort function. If you had list of 4 items: image1, image2, image10, image11 they don't sort right with a normal sort. Natural sort fixes that. Very cool. Fixed the sorting problems on my DVD page.
Leave A Reply - 1 Reply
Anonymous 2003-04-13 10:18pm - No Email - Logged IP: unknown


I have been trying to figure out how to use natsort on resultset. I have a number of columsn but want to natsort the first column and then display the results on a web page. Do you have an example of how you did this?

much appreciated, Kirk

All content licensed under the Creative Commons License