text: 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;}