public List<PackedObjectInfo> getSortedObjectList(Comparator<PackedObjectInfo> cmp) {Arrays.sort(entries, 0, entryCount, cmp);List<PackedObjectInfo> list = Arrays.asList(entries);if (entryCount < entries.length)list = list.subList(0, entryCount);return list;}

public List < PackedObjectInfo > getSortedObjectList ( Comparator < PackedObjectInfo > cmp ) { Arrays . sort ( entries , 0 , entryCount , cmp ) ; List < PackedObjectInfo > list = Arrays . asList ( entries ) ; if ( entryCount < entries . length ) list = list . subList ( 0 , entryCount ) ; return list ; }
public virtual IList<PackedObjectInfo> GetSortedObjectList(IComparer<PackedObjectInfo> cmp){Arrays.Sort(entries, 0, entryCount, cmp);IList<PackedObjectInfo> list = Arrays.AsList(entries);if (entryCount < entries.Length){list = list.SubList(0, entryCount);}return list;}
