[EventsQueryOption] Add a function to set the sort type

Currently following 2 types are defined:

* SORT_UNIFIED_ID
* SORT_TIME