Bug 31554

Summary: Sorting of acquisition info appears to be broken
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SerialsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: joonas.kylmala, patrick.robitaille
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 20726    
Bug Blocks:    

Description Katrin Fischer 2022-09-13 11:06:33 UTC
According to the notes on bug 20726 the acquisition details for subscriptions should sort by status (open/pending) first and then by ordernumber. 

The first appears to work, but the second doesn't. Looking at the subscription details of a record with all status being 'complete' the secondary sorting doesn't appear to work.

In the column order number, we see:

1683
948
2095

So it doesn't appear to sort alphabetically either.

In the column basket we have

2... (603)
B... (328)
2... (774)

So neither works.
Comment 1 Joonas Kylmälä 2022-09-13 18:11:43 UTC
I'm guessing a regression or intended changed from "Bug 21467: Add treetable to subscription detail to group orders by parent ordernumber"
Comment 2 Katrin Fischer 2022-09-14 07:35:27 UTC
You are probably right, Joonas, but I wonder how we could improve sorting again. Right now I can not see any type of sorting, if all the status are 'complete'. Some kind of chronologically sorting would be nice - maybe by order date?