I want to sort last three numbers in following Pattern.
Pattern: 1AB23CD456
I have same pattern strings stored in mysql database.
Output I get:
1ab33cd401
1ab22cd201
1ab11cd101
1ab01cd301
Output I want:
1ab01cd101
1ab11cd201
1ab22cd301
1ab33cd401
And Before sorting last 3 numbers , I would like to sort numbers between ab and cd
I am using PHP server side scripting language, if required