Added order by clause for tick model