Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-366

Can't sort a List of FileObject's, FileObject to implement Comparable<FileObject>

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None
    • Environment:

      Description

      I'd like to be able to say:

      List<FileObject> list = ...
      Collections.sort(list);
      

      and have the list sort the same way I can sort a File, by name.

      FileObject should implement Comparable<FileObject>

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary Gregory
              Reporter:
              ggregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: