Bug 31127

Summary: By default sort suggestions from latest to oldest
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: AcquisitionsAssignee: Fridolin Somers <fridolin.somers>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: e.betemps, lucas, r.j.wijlens
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27813
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 32603    
Bug Blocks:    

Description Fridolin Somers 2022-07-09 07:46:06 UTC
Currently suggestions table is sorted from oldest to latest.

From suggestion.tt :
  KohaTable("table_[% loop.count| html %]", {
      "sorting": [[ 3, "asc" ]],

Since the default tab is pending suggestions, it would be better to have the reverse order.
Some old suggestions may stay in pending for a while and librarian must be aware of new suggestions.
Comment 1 Fridolin Somers 2022-07-09 07:47:41 UTC
If OK I'll provide a patch
Comment 2 Katrin Fischer 2022-07-15 13:07:21 UTC
Could we make the sort configurable using the new Datatables options? I believe some libraries might want the one or the other (LIFO or FIFO...)
Comment 3 Fridolin Somers 2022-11-26 02:16:53 UTC
You mean like Bug 24156

Looks like the column can be defined but not the ascending or descending order.
Would need a new config
Comment 4 Fridolin Somers 2023-08-09 20:02:45 UTC
Ah also Bug 32603 added a new column without changing default sorting column
Comment 5 Ronald Wijlens 2024-11-18 10:01:30 UTC
I support the wish for sorting options for the suggestions table. Or at least have the latest suggestions at the top.