Tri - very simple problem, but I can't get it

Hi, I have a little problem with a sort column.
I think it's for you, a very simple problem, but for the moment, I can't find the solution.

My topic:
SCHLUESSEL
-----------------
15
16
17
1501
1502
150101
150103
150202
15010100
15010301
15020215
...

Correct order is:

15
1501
150101
15010100

150103
15010301

1502
150202
15020215

16
17

have you tried

order by to_char(SCHLUESSEL)

Ravi Kumar

Tags: Database

Similar Questions

Maybe you are looking for