Users: Second Sort in Lists Should be Previous Sort Column
Description
Environment
Potential Workaround
clones
relates to
Checklist
hideTestRail: Results
Activity
Charlotte Whitt June 22, 2017 at 6:14 PMEdited
Sounds good, thanks @mike. I'll close the issue now.
Mike Taylor June 22, 2017 at 5:00 PM
The new issue for sorting patron-group by name is https://folio-org.atlassian.net/browse/UIU-101#icft=UIU-101
Mike Taylor June 22, 2017 at 4:57 PM
Thanks again. The odd sorting order of patron-group is analogous to the odd sorting of material-type over in the Items module, and has the same cause: see https://folio-org.atlassian.net/browse/UIIT-33
I will file a new issue for this. If you are otherwise happy with this one, you can go ahead and close.
Charlotte Whitt June 22, 2017 at 12:18 PMEdited
Tested in http://folio-testing.aws.indexdata.com/, version @folio/users 2.7.1.
Default, 'user status, active', the name column is a-z (161 results found) http://folio-testing.aws.indexdata.com/users?filters=active.Active&sort=Name
1) When clicking on the header of 'patron group', this is sorted as first column, and the second sort is the name column (in alphabetic order a-z) http://folio-testing.aws.indexdata.com/users?filters=active.Active&sort=Patron%20Group%2CName.
Expected result:
To get the list starting with off_campus patron group.
Actual result:
The list I get starts with on_campus - this is not alphabetic order a-z of the patron group categories; then you would expect off_campus, then on_campus, and then other (but I can be mistaken, and this has been decided in a different jira issue)
2) Clicked away 'active' user status (208 results), click on header in column 'user id', now user id is first sort, alphabetic order (a-z), and patron group is second sort order http://folio-testing.aws.indexdata.com/users?filters=&sort=username%2CPatron%20Group
This is as expected.
3) Clicked in the filter pane on patron group 'other' (71 results found), and clicked on the email-header. The second sort is now user id http://folio-testing.aws.indexdata.com/users?filters=pg.other&sort=Email%2Cusername
This is as expected.
Purpose: Make it such that, if you sort by a column other than name, the secondary sort should be the previous sort column
Scenarios
Scenario
Given a column A is the primary sort in the user list
When column B is selected as the primary sort
Then column A becomes the secondary sort