SortOrder

SortOrder gives you the ability to return different items based on what option you pass in.
enum SortOrder { LATEST OLDEST SEARCH }
LATEST - Return latest (newest) first
OLDEST - Return oldest first
SEARCH - Return only issues that match the filtered searchTerm property (which should be passed in whenever SEARCH is chosen as the SortOrder).