Sir, i am not sure what you are exactly asking, but wouldn't it be simpler to select the date in a format that would be easier to sort? Just specify a date mask when selecting it from Oracle. Something like
select to_char(date_col,'YYYYMMDDHH24MISS') from table;