private static String getSortKey(String sortKey) {
    if (sortKey.equals("severity")) {
      return AppResult.TABLE.SEVERITY;
    } else if (sortKey.equals("resourceUsed")) {
      return AppResult.TABLE.RESOURCE_USAGE;
    } else if (sortKey.equals("resourceWasted")) {
      return AppResult.TABLE.WASTED_RESOURCES;
    } else if (sortKey.equals("delay")) {
      return AppResult.TABLE.TOTAL_DELAY;
    } else if (sortKey.equals("finish_time")) {
      return AppResult.TABLE.FINISH_TIME;
    }
    return "severity";
  }
Maps the sort key to the actual field values
@param sortKey The sortKey
@return The value from the sort key
app/controllers/api/v1/Web.java