select * from (select * from 600004_m30 order by datetime desc limit 5) as thetable order by datetime ASC