SQL Server 2012
I have values in 'name' column like this
AMOU VHOR 1A 7W1 11W 12Wand I am using this query to sort them in order
select * from Unit c where expsetid=382 order by CONVERT(INT,substring(name, 0, PATINDEX('%[^0-9]%', name+'z'))) asc
When I order by desc I got
12W 11W 7W1 1A AMOU VHOR
But I expect them to be in this order when its desc
12W 11W 7W1 1A VHOR AMOU