Sort post by time and fix time/formatted_time.