``var sortPrefix = SortService.isDescending() ? '' : 'desc';`` would be more readable imo