Thank you greatly. I am really not familiar with the CAST function at all, but it does do what I need it to do. I’ll look into what else I can do with CAST now. Thank you.
For clarity, this is so that the order is such that 10a comes before 10b etc (because the first order by term makes them both 10)…
I haven’t really kept up but my last recollection is that without the second term, the behavior of the sort is undefined for equal values? Or has it been defaulted to an index-based order?