(SketchFile x, SketchFile y)
| 33 | |
| 34 | public static final Comparator<SketchFile> CODE_DOCS_COMPARATOR = new Comparator<SketchFile>() { |
| 35 | @Override |
| 36 | public int compare(SketchFile x, SketchFile y) { |
| 37 | if (x.isPrimary() && !y.isPrimary()) |
| 38 | return -1; |
| 39 | if (y.isPrimary() && !x.isPrimary()) |
| 40 | return 1; |
| 41 | return x.getFileName().compareTo(y.getFileName()); |
| 42 | } |
| 43 | }; |
| 44 | |
| 45 | /** |
nothing calls this directly
no test coverage detected