String parseSortDirection(String sortMethod) { return ['asc', 'desc'].contains(sortMethod.toLowerCase()) ? sortMethod : 'DESC'; }