I have a LINQ-to-SQL query, and I order on an nvarchar field called CustomerReference. The problem is, reference’s that start with a capital letter seem to be after ones without capitals, when I need this the other way around. For example, if I have the following rows:
d93838
D98484
It is currently ordered in that sequence right now, however I need it reversed – so it’d be like this
D98484
d93838
Any ideas guys? Thanks
This assumes the Format [A-Za-z]\d+ and will put b3432 before C1234 but after B9999
EDIT: I was asked for the SQL too so this is what LINQPad does