Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-526

Allow administrators to select the Comparator used for sorting page lists by name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.3
    • Localization
    • None

    Description

      I personally hate the order of pages returned by the standard sorting routines and would rather an order that understood numeric ordering. That is, instead of having the list:

      WikiPage1
      WikiPage10
      WikiPage2

      I'd like to get the list:

      WikiPage1
      WikiPage2
      WikiPage10

      There are also many other case, especially for localisation, where being able to set the page name order would be useful.

      To achieve this, I propose adding a JSPWiki property which specifies the Comparator to be used for page names. Before I do the work and submit a patch, I'd like to know:

      • Would this be a welcome feature?
      • Is jswpwiki.pageNameComparator an appropriate property name? If not, what do you suggest?

      Attachments

        1. jspwiki-526-PageSorter.patch
          49 kB
          Greg Kable
        2. jspwiki-526-PageSorter.patch
          48 kB
          Greg Kable

        Activity

          People

            Unassigned Unassigned
            grackleflint Greg Kable
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: