compare_array implementation is confusing
Bug #1821032 reported by
a. bellenir
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
the existing implementation works but it can be written much more concisely.
because it uses localeCompare, the suggested new implementation will only work on arrays of strings. it can be modified to work on arrays of numbers too if needed.
feel free to mark this bug invalid or wontfix if this is not considered an improvement.
tags: | removed: webstaffclient |
To post a comment you must log in.
here's a branch with a suggested implementation.
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ abellenir/ lp1821032- compare_ array-implmenet ation-is- confusing