In my application am trying to format and sort the date, i am using to_char() function to format the date to my required format, but when i sort them it is sorting
For sqlplus, use alter session set nls_date_format to what you want the date format to be, then just use the column name in your select statement and sort order.