(ArrayList<FileInfo> items, final ItemGroupExtractor extractor)
| 368 | } |
| 369 | |
| 370 | private void sortItems(ArrayList<FileInfo> items, final ItemGroupExtractor extractor) { |
| 371 | Collections.sort(items, new Comparator<FileInfo>() { |
| 372 | @Override |
| 373 | public int compare(FileInfo lhs, FileInfo rhs) { |
| 374 | String l = extractor.getComparisionField(lhs) != null ? extractor.getComparisionField(lhs).toUpperCase() : ""; |
| 375 | String r = extractor.getComparisionField(rhs) != null ? extractor.getComparisionField(rhs).toUpperCase() : ""; |
| 376 | return l.compareTo(r); |
| 377 | } |
| 378 | }); |
| 379 | } |
| 380 | |
| 381 | private void addGroupedItems(FileInfo parent, ArrayList<FileInfo> items, int start, int end, String groupPrefixTag, int level, final ItemGroupExtractor extractor) { |
| 382 | int itemCount = end - start; |
no test coverage detected