public int compare(JsonObject a, JsonObject b) {
        Long first = a.get(JsonKeys.FINISH_TIME).getAsLong();
        Long second = b.get(JsonKeys.FINISH_TIME).getAsLong();
        return second.compareTo(first);
      }
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