private int compareLabel(JsonObject jsonObj1,JsonObject jsonObj2){
  String label1=getLabel(jsonObj1);
  String label2=getLabel(jsonObj2);
  return label1.compareTo(label2);
}

private int compareLabel ( JsonObject jsonObj1 , JsonObject jsonObj2 ) { String label1 = getLabel ( jsonObj1 ) ; String label2 = getLabel ( jsonObj2 ) ; return label1 . compareTo ( label2 ) ; }
compares the labels for the two given json objects . returns a negative integer if the first label lexicographically precedes the second label . returns a positive integer if the first label lexicographically follows the second label . returns zero if the labels are equal .
