Hi,
I want to order my results in the way a human being would (i.e. 9 before 10). In PHP there is the function natsort(), is there an equivalent with MySQL, or a workaround that is not too complicated. Just curious really, not particularly necessary!
It's for the page that is shown when I'm rebuilding my search engine, it lists the pages I'm rebuilding current with ORDER BY url, but this prints out things like:
Indexing: modules.php?page=1 (query took 0.135 sec)
Indexing: modules.php?page=10 (query took 0.137 sec)
Indexing: modules.php?page=11 (query took 0.137 sec)
Indexing: modules.php?page=2 (query took 0.139 sec)
Indexing: modules.php?page=3 (query took 0.146 sec)
Indexing: modules.php?page=4 (query took 0.147 sec)
Indexing: modules.php?page=5 (query took 0.155 sec)
Indexing: modules.php?page=6 (query took 0.149 sec)
Indexing: modules.php?page=7 (query took 0.158 sec)
Indexing: modules.php?page=8 (query took 0.157 sec)
Indexing: modules.php?page=9 (query took 0.152 sec)
What I'd really like is:
Indexing: modules.php?page=1 (query took 0.135 sec)
Indexing: modules.php?page=2 (query took 0.139 sec)
Indexing: modules.php?page=3 (query took 0.146 sec)
Indexing: modules.php?page=4 (query took 0.147 sec)
Indexing: modules.php?page=5 (query took 0.155 sec)
Indexing: modules.php?page=6 (query took 0.149 sec)
Indexing: modules.php?page=7 (query took 0.158 sec)
Indexing: modules.php?page=8 (query took 0.157 sec)
Indexing: modules.php?page=9 (query took 0.152 sec)
Indexing: modules.php?page=10 (query took 0.137 sec)
Indexing: modules.php?page=11 (query took 0.137 sec)
As only I see this, it doesn't matter too much, but it gives me an idea of what's going on on my site!
Many thanks,
ucbones