Ordering an array
| From: | Brian Paulson | Date: | Mon, 11 Dec 2000 21:30:44 +0000 |
| Subject: | Ordering an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29755@lists.php.net to get a copy of this message | ||
Hello,
I am taking a list of file names and putting them into an array. I am using
sort with returns them in the order.
0: pw1.htm
1: pw10.htm
2: pw11.htm
3: pw12.htm
4: pw13.htm
5: pw14.htm
6: pw15.htm
7: pw16.htm
8: pw18.htm
9: pw19.htm
10: pw2.htm
11: pw20.htm
12: pw3.htm
13: pw4.htm
14: pw5.htm
15: pw6.htm
16: pw7.htm
17: pw8.htm
18: pw9.htm
what I would like to be able to do is order them like this.
pw1.htm
pw2.htm
pw3.htm
pw4.htm
pw5.htm
pw6.htm
pw7.htm
pw8.htm
pw9.htm
pw10.htm
pw11.htm
pw12.htm
pw13.htm
pw14.htm
pw15.htm
pw16.htm
pw18.htm
pw19.htm
pw20.htm
Any Ideas?
Thank You
Brian Paulson
Sr. Web Developer
http://www.chieftain.com
bpaulson@chieftain.com
1-800-279-6397