I have the following rows returned from my SQL query- can someone please help with a generic sorting code to sort the values in ascending order?
Also please note that my rows will be dynamically returned and will not always contain the same string as posted in my question above. It will be a mix of alphabets/integers. Below is just an example of a sample rows returned- need a generic formulae/sql approach and NOT a hard coding approach..thanks
('High_Speed'),
('M1 Speed'),
('M13 Speed'),
('M14 Speed'),
('M2 Speed'),
('M3 Speed'),
('Medium_Speed'),
('Test1 zone1 High_Speed'),
('Test1 zone11 High_Speed'),
('Test1 zone2 High_Speed'),
('Test1 zone21 High_Speed'),
('Zone206 Speed')
expected sorting-
('High_Speed'),
('M1 Speed'),
('M2 Speed'),
('M3 Speed'),
('M13 Speed'),
('M14 Speed'),
('Medium_Speed'),
('Test1 zone1 High_Speed'),
('Test1 zone2 High_Speed'),
('Test1 zone11 High_Speed'),
('Test1 zone21 High_Speed'),
('Zone206 Speed')