Added order by clause when retrieving quizzes and results