added order by result time functionality