Skip to content
Commit 37422e89 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: revise array sorting



Refactor various sort operations throughout luci-base to use the new
L.naturalCompare() comparator function.

This primarily ensures that embedded numbers are sorted numerically and
not in a lexicographical way.

It also simplifies some code as a side effect.

Ref: #5899
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 8199b2ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment