case SORT_COURSE_SEARCH_RESULTS: {
      const sorted = sortByKey(
        state.results,
        action.key,
        state.sort.sortKey,