Hi there I have an annoying problem.
I have an array of values as follows:
Fashion 1
Fashion 5
Fashion 10
Fashion 3
Fashion 2
Fashion 4 etc
I want to sort them via alphabetical and numeric order so I used natsort however this gave the following result:
Fashion 1
Fashion 10
Fashion 2
Fashion 3
Fashion 4
Fashion 5 etc
But I want to display it as follows
Fashion 1
Fashion 2
Fashion 3
Fashion 4
Fashion 5
Fashion 6
Fashion 7
Fashion 8
Fashion 9
Fashion 10
i.e. like a human would order it numerically. I have read up and discovered that natsort has problems with spaces and underscores so was wondering if anyone knew a work around to order things naturally (preferably without removing the spaces from the entries, but if necessary they can be remove then re-added after.
Thanks for your help,
Bob