Added ORDER BY to get queue