LP1857350 Org selector sorts by display value
authorBill Erickson <berickxx@gmail.com>
Thu, 26 Dec 2019 18:18:26 +0000 (13:18 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 30 Dec 2019 15:10:45 +0000 (10:10 -0500)
commitb26e29d6ada7b194a1226ba8d6813cdc45aba49d
tree161eb9100ffb920e4e4fd1bdb2aea99e9f0bbee7
parent7fe992abef62c3beb6438b9c7af0801ed175ff69
LP1857350 Org selector sorts by display value

When displaying the org unit selector, sort each set of children by the
display label (defaults to shortname).

Fixes issues with the org server sortTree function and adds a unit test
to test the repaired sort function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/core/org.service.ts
Open-ILS/src/eg2/src/app/core/org.spec.ts
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts
Open-ILS/src/eg2/src/test_data/eg_mock.js