Most popular should always sort most popular items on top, but it doesn't. - Turn on: OpacTopissue Open the most popular page in the OPAC. -> The records should appear correctly. Now change - Show the top filter to 20 titles and - Acquired in the last to No limit and Submit -> The results are no longer sorted correctly by Checkouts.
Hello Alexandra, I don't recreate this behaviour on master. On which exact version of 20.05.x did you try? Can you submit a the two screens?
(In reply to Jonathan Druart from comment #1) > Can you submit a the two screens? Can you submit a screenshot of the two screens?
Created attachment 114283 [details] Screenshot of proper search Version tested: 20.05.05
Created attachment 114284 [details] Screenshots of wrong results
Coming from commit 1b6452bc5422c998e0127822c5b3c47ff77355d1 Bug 9916: (follow-up) restore default sort order for OPAC "most popular" page
Created attachment 114286 [details] [review] Bug 27168: Sort most popular by number of issues desc It seems that there is a weird behavior when the title is used as a second sort Test plan: Turn on OpacTopissue Make sure the table always displays entries sorted by number of issues desc
Created attachment 114292 [details] [review] Bug 27168: Sort most popular by number of issues desc It seems that there is a weird behavior when the title is used as a second sort Test plan: Turn on OpacTopissue Make sure the table always displays entries sorted by number of issues desc Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Thx Lucas!
Created attachment 114600 [details] [review] Bug 27168: Sort most popular by number of issues desc It seems that there is a weird behavior when the title is used as a second sort Test plan: Turn on OpacTopissue Make sure the table always displays entries sorted by number of issues desc Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.02
Doesn't apply cleanly to 20.05, please rebase if needed
This bug was initially found in 20.05, so a rebase would be great.
Created attachment 115049 [details] [review] Bug 27168: [20.05.x] Sort most popular by number of issues desc It seems that there is a weird behavior when the title is used as a second sort Test plan: Turn on OpacTopissue Make sure the table always displays entries sorted by number of issues desc
Patch rebased but not tested.