Comment 2 for bug 1479531

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

Sorry for not including the version info.

We are running EG 2.8.2 also.

It looks like the org unit widgets calls open-ils.actor:open-ils.actor.org_tree.retrieve which returns the org units ordered by the name.
https://github.com/evergreen-library-system/Evergreen/blob/master/Open-ILS/web/reports/oils_rpt_widget.js#L298

Would it be better to modify open-ils.actor:open-ils.actor.org_tree.retrieve so it takes an argument for which type of sort to do? Or would it be better to sort the org tree once it is returned to the report module?

I'm leaning toward modifying open-ils.actor:open-ils.actor.orge_tree.retrieve since this issue could happen in other instances where the short code is displayed vs the name. But I'm biased because I don't know javascript very well, while the changes to the perl code look simple.

Josh