@Override
    public int compare(FileItem o1, FileItem o2) {
      String title1 = PropertyUtils.getTitle(o1);
      String title2 = PropertyUtils.getTitle(o2);

      return title1.toLowerCase(Locale.US).compareTo(title2.toLowerCase(Locale.US));
    }
Esempio n. 2
0
    @Override
    public int compare(FileItem o1, FileItem o2) {
      String title1 = PropertyUtils.getTitle(o1);
      String title2 = PropertyUtils.getTitle(o2);

      return StringUtils.compareFullPrimary(title1, title2);
    }