Hi ,
I would like to sort varchar values alpha and then numeric
Like if caracter in the string is a number in one value and a letter in the other value at the same position,
it should order by letter fisrt
Like those 2 values :
PTQHGD0107T
PTQHGD01CA8
Should be sorted to give:
PTQHGD01CA8 -- the letter C before the number 7
PTQHGD0107T
and also....
Like those 2 values :
GMNRON08DS0
GMNRON07ES0
Should be sorted to give:
GMNRON07ES0 -- The number 7 before the number 8
GMNRON08DS0
and finally....
Like those 2 values :
GMNRON08KS0
GMNRON08ES0
Should be sorted to give:
GMNRON08ES0 -- The letter E before the letter K
GMNRON08KS0
Thanks!