Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-2402

browsing repository - sort order incorrect for versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Incomplete
    • Affects Version/s: 1.3.6
    • Fix Version/s: None
    • Component/s: UI
    • Labels:
      None

      Description

      When broswing the repository via the UI the tree is sorted by a lexical compare.

      This is fine for group/artifact IDs but versions should use a smarter compare (e.g. assume a maven conventions x.y.z and use it to sort if possible so 0.0.11 comes after 0.0.9)

      e.g.

      curently

      myco

      • myartifact
        + 0.0.1
        + 0.0.10
        + 0.0.11
        + 0.0.2
        + 0.0.3
        + 0.0.4
        + 0.0.5
        + 0.0.6
        + 0.0.7
        + 0.0.8
        + 0.0.9

      should be
      myco

      • myartifact
        + 0.0.1
        + 0.0.2
        + 0.0.3
        + 0.0.4
        + 0.0.5
        + 0.0.6
        + 0.0.7
        + 0.0.8
        + 0.0.9
        + 0.0.10
        + 0.0.11

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                teilo James Nord
                Last Updated By:
                Luis Silva
              • Votes:
                8 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: