LP1821032 - compare_array implmenetation is confusing user/abellenir/lp1821032-compare_array-implmenetation-is-confusing
authora. bellenir <abelleni@grpl.org>
Wed, 20 Mar 2019 15:51:58 +0000 (11:51 -0400)
committera. bellenir <abelleni@grpl.org>
Wed, 20 Mar 2019 15:51:58 +0000 (11:51 -0400)
commitc5cbbb4f1d446a5f26bc4a610fc035df1affba12
tree426a5b6f13c660c7ec5861e4af918f5629802bb7
parent8706a278b6093339e80c3348752fb46d90f3e9a6
LP1821032 - compare_array implmenetation is confusing

the existing implementation works but can much more concise.

because it uses localeCompare, this suggested implementation will only work on arrays of strings.
it can be modified to work on arrays of numbers too, if needed.

Signed-off-by: a. bellenir <abelleni@grpl.org>
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js