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? 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? 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 Link to comment https://forums.phpfreaks.com/topic/69607-array-sort-function/#findComment-349787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.