Table of contents
This query will fetch all the events for which user registered from the database.
An object that contains
id of the user and
The query function uses
getSort() function to sort the data in specified.