SELECT
type,
create_date,
substr(create_date,1,10) as d,
substr(create_date,12) as t
FROM
history_received_message order by d desc,t asc
type,
create_date,
substr(create_date,1,10) as d,
substr(create_date,12) as t
FROM
history_received_message order by d desc,t asc