protected void sortTables ( int [ ] offsets , final ByteBuffer bb ) { Integer [ ] off = new Integer [ offsets . length ] ; for ( int i = 0 ; i < offsets . length ; i ++ ) off [ i ] = offsets [ i ] ; java . util . Arrays . sort ( off , new java . util . Comparator < Integer > ( ) { public int compare ( Integer o1 , Integer o2 ) { return keysCompare ( o1 , o2 , bb ) ; } } ) ; for ( int i = 0 ; i < offsets . length ; i ++ ) offsets [ i ] = off [ i ] ; }
Sort tables by the key .