Added ORDER BY clause to query