luci-base: luci.js: add array sort utilities
authorJo-Philipp Wich <jo@mein.io>
Wed, 27 Jul 2022 14:31:10 +0000 (16:31 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 27 Jul 2022 15:31:01 +0000 (17:31 +0200)
commit8199b2ce9a7d36359aedea1ad9dab157134a46c2
treefc531b62ce27eb34e4f2878b53f9c578618f45be
parent26afb7cbec6108b23c9381937489bb05a833c7e6
luci-base: luci.js: add array sort utilities

Add two new utility functions L.naturalCompare() and L.sortedArray() to
simplify sorting arrays naturally.

Ref: #5899
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js