Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-21743

Gradebook's list of students sorting order doesn't respect white spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.2, 2.9.0, 10.0
    • Component/s: Gradebook Classic
    • Labels:
      None
    • 2.9 Status:
      Closed
    • CLE Team Issue:
      Yes

      Description

      Using java.text.Collator for ordering by lastnames makes a bad sorting order because Collator doesn't count the blank spaces, as reported in https://jira.sakaiproject.org/browse/KNL-873

      Given two students, whose lastnames are "Martinez Torcal" and "Martin Troncoso", the logical alphabetical order is first "Martin Troncoso" and after "Martinez Torcal", just because the blank space is counted as a character.

      However, in our Sakai 2.7.1 they are ordered just the opposite: first "Martinez Torcal" and after "Martin Troncoso". This issue happens in every tool of Sakai which uses Collator. And Gradebook is included.

      I have made a patch for 2.7.1 using RuleBasedCollator class which fixes the problem, but I'm not sure if could affect the performance.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  daniel.merino Daniel Merino Echeverría
                  Reporter:
                  daniel.merino Daniel Merino Echeverría
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code