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) firstOLDEST - Return oldest firstSEARCH - Return only issues that match the filtered searchTerm property (which should be passed in whenever SEARCH is chosen as the SortOrder).