public static void sortByTypeIdIndex(AnnotationItem[] array){
  Arrays.sort(array,TYPE_ID_SORTER);
}

public static void sortByTypeIdIndex ( AnnotationItem [ ] array ) { Arrays . sort ( array , TYPE_ID_SORTER ) ; }
sorts an array of instances , in place , by type id index , ignoring all other aspects of the elements . this is only valid to use after type id indices are known .
