Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8860

Views select list sorting should be case-insensitive

    Details

    • Similar Issues:

      Description

      In the views select list, the sort order is currently case-sensitive. For example, the following entries would currently be sorted:

      Alpha
      Beta
      Gamma
      aardvark
      gorilla

      Where the ideal sorting would be:

      aardvark
      Alpha
      Beta
      Gamma
      gorilla

      The list should have a natural sort order that is case insensitive.

      It should be noted that case-insensitive ordering is Jenkins' behavior by default when displaying tabs, so the current behavior of the select list differs from that of Jenkins. Ultimately, the sorting should match how Jenkins orders the tabs when the plugin is not installed.

        Attachments

          Activity

          Hide
          jieryn jieryn added a comment -

          While I could implement this, I think it is not such a great idea to do within the locality of the plugin. This plugin doesn't sort the views at all, it falls back to the way standard view sorting is handling in Jenkins. Perhaps this could be re-assigned to core for evaluation? Otherwise, it should be closed.

          Show
          jieryn jieryn added a comment - While I could implement this, I think it is not such a great idea to do within the locality of the plugin. This plugin doesn't sort the views at all, it falls back to the way standard view sorting is handling in Jenkins. Perhaps this could be re-assigned to core for evaluation? Otherwise, it should be closed.
          Hide
          robhruska Rob Hruska added a comment -

          Since it falls back on Jenkins' standard view sorting, can you provide some insight on why it would order differently than the Jenkins tabs (when the plugin is not installed)? If I reassign to core, I'd want to be able to explain the difference, I suppose.

          Show
          robhruska Rob Hruska added a comment - Since it falls back on Jenkins' standard view sorting, can you provide some insight on why it would order differently than the Jenkins tabs (when the plugin is not installed)? If I reassign to core, I'd want to be able to explain the difference, I suppose.
          Hide
          evernat evernat added a comment -

          @Rob
          For me, this issue is currently fixed (using Jenkins v1.446).
          Do you confirm that?

          Show
          evernat evernat added a comment - @Rob For me, this issue is currently fixed (using Jenkins v1.446). Do you confirm that?
          Hide
          robhruska Rob Hruska added a comment -

          @evernat - We've got Jenkins 1.451 installed and the issue is still present. The list sill shows all uppercase projects first followed by all lowercase projects, each portion itself sorted alphabetically.

          I tried creating a new lowercase-named view to see if it would insert it into the uppercase portion (in case the list was static and only updated when items were inserted), but the new lowercase view was displayed in the lowercase portion with the rest of the lowercase views.

          Show
          robhruska Rob Hruska added a comment - @evernat - We've got Jenkins 1.451 installed and the issue is still present. The list sill shows all uppercase projects first followed by all lowercase projects, each portion itself sorted alphabetically. I tried creating a new lowercase-named view to see if it would insert it into the uppercase portion (in case the list was static and only updated when items were inserted), but the new lowercase view was displayed in the lowercase portion with the rest of the lowercase views.
          Hide
          robhruska Rob Hruska added a comment - - edited

          Added a new view in Jenkins 1.451 to test whether or not issue was fixed.

          The new view, titled "lowercase", ought to have been inserted after the two existing uppercase "Li..." items, but instead was added after all of the uppercase items in the list.

          I attached a screenshot.

          Show
          robhruska Rob Hruska added a comment - - edited Added a new view in Jenkins 1.451 to test whether or not issue was fixed. The new view, titled "lowercase", ought to have been inserted after the two existing uppercase "Li..." items, but instead was added after all of the uppercase items in the list. I attached a screenshot.
          Hide
          evernat evernat added a comment -

          Hi Rob,
          Thanks for the screenshot. I see now that I was not testing the same thing.

          Show
          evernat evernat added a comment - Hi Rob, Thanks for the screenshot. I see now that I was not testing the same thing.
          Hide
          danielbeck Daniel Beck added a comment -

          Not a core issue.

          Show
          danielbeck Daniel Beck added a comment - Not a core issue.
          Hide
          ssbarnea Sorin Sbarnea added a comment -

          I would propose polishing this issue to resolve a more generic issue than case-sensitivity:* alphanum sorting*, that why I added it under https://issues.jenkins-ci.org/browse/JENKINS-44119

          Show
          ssbarnea Sorin Sbarnea added a comment - I would propose polishing this issue to resolve a more generic issue than case-sensitivity:* alphanum sorting*, that why I added it under https://issues.jenkins-ci.org/browse/JENKINS-44119

            People

            • Assignee:
              Unassigned
              Reporter:
              robhruska Rob Hruska
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: