Changed the order by clause to sort the right way.