returns a negative , zero , or positive number depending on whether the first element is less than , equal to , or greater than the second element . the default implementation of this method is based on comparing the elements ' categories as computed by the category framework method . elements within the same category are further subjected to a case insensitive compare of their label strings , either as computed by the content viewer 's label provider , or their tostring values in other cases . subclasses may override . concode_field_sep Comparator<? super String> comparator concode_field_sep String getLabel concode_elem_sep Comparator<? super String> getComparator concode_elem_sep void sort concode_elem_sep int category concode_elem_sep boolean isSorterProperty
int function ( Viewer arg0 , Object arg1 , Object arg2 ) { int loc0 = category ( arg1 ) ; int loc1 = category ( arg2 ) ; if ( loc0 != loc1 ) { return loc0 - loc1 ; } String loc2 = getLabel ( arg0 , arg1 ) ; String loc3 = getLabel ( arg0 , arg2 ) ; return getComparator ( ) . compare ( loc2 , loc3 ) ; }