I have saw many questions similar but after read those posts I still need to ask.
My question:
there is a variable has around 100 values, from 8, 9, 111, 23, 456,457, ab1, ac2, abc9, d388, q34, s789, etc
I want to sort it to a way that I feel comfortable with, that is, it should sfirst start with, 8, then 9, then 23... then ab1, ac2, then d388...
the rule would be:
if all are numbers, the order should be from small to big, that is, 8 should be listed before 111;
those with letters will be after the numbers, and in the order with alphabit order, that is, after these numbers, ab1 should be first,
but even I sort it, it still lists 111 before 8. I then realize it might be because sas considers 1 is small then 8.
I thought I could add leading zero, I do not know how to do this becasue it is a mixture of numeric and alpha.
Thank you in advance for your advice and time!
... View more