private static List<Severity> getSortedSeverityKeys(Set<Severity> severities) {
    List<Severity> severityList = new ArrayList<Severity>();
    severityList.addAll(severities);
    Collections.sort(severityList, new Comparator<Severity>() {
      public int compare(Severity a, Severity b) {
        return b.getValue() - a.getValue();
      }
    });
    return severityList;
  }
This utility method is used to sort the jsonArray based on FinishTime
@param jsonArray The jsonArray to be sorted
@return The sorted jsonArray based on finishtime
app/controllers/api/v1/Web.java