Comment 2 for bug 2037674

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Working branch at user/stompro/lp2037674_angular_holdings_part_sort

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/stompro/lp2037674_angular_holdings_part_sort

I'm unsure what the last part of the .subscribe( function is doing. But it worked fine to tell the pcrud.search to sort the results.

I added a descending sort to the call. When the parts sorting for the holdings editor for the AngularJS client was discussed, the reverse sort was agreed upon also. Bug 1760893 for the discussion then. Which is great because that is what we wanted.

Here is an example of how to reverse the parts sorting for the Angular Monograph Parts interface and for Angular holds placement also in case that is useful to anyone.
https://gitlab.com/LARL/evergreen-larl/-/commit/d71d672f85adae566e00380f3c094cf88899a4ee

Josh