Sorry about my mistake, I should provide the real sample for the question, my ID included characters inside:
sample code:
select ID from student order by ID
Expected output from mine but system output
------------------------- -----------------
JAD.1.99.9 JAD.1.99.10
JAD.1.99.10 JAD.1.99.9
and this ID
is of nvarchar
type.