LanceT Posted September 16, 2007 Share Posted September 16, 2007 Does it also sort numbers? IE, sort it so the array is in order 1,2,3,4,5 But also I have some text after the number. It doesn't seem to be able to sort numbers. If not, what can do this? Quote Link to comment https://forums.phpfreaks.com/topic/69607-array-sort-function/ Share on other sites More sharing options...
cooldude832 Posted September 16, 2007 Share Posted September 16, 2007 It sorts in alphanumiercal so 1-Dog comes before 1-Fish Can we see this script? Quote Link to comment https://forums.phpfreaks.com/topic/69607-array-sort-function/#findComment-349785 Share on other sites More sharing options...
Jessica Posted September 16, 2007 Share Posted September 16, 2007 you might want to be using natsort Quote Link to comment https://forums.phpfreaks.com/topic/69607-array-sort-function/#findComment-349787 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.