Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ordering alphanumeric values

kovarMay 10 2019 — edited May 10 2019

Hi everyone,

what is the easiest way to sort these alphanumeric values so that A2 value comes before A11?

select * from (

select 'A11.1' from dual

union all

select 'A2' from dual

union all

select 'A2.1' from dual

union all

select 'P5' from dual

union all

select 'A11.1.2' from dual

union all

select '-A11.1.2d' from dual

)

order by 1

pastedImage_0.png

This post has been answered by Frank Kulash on May 10 2019
Jump to Answer
Comments
Post Details
Added on May 10 2019
7 comments
441 views