luci-base: dispatcher: use consistent ordering
authorJo-Philipp Wich <jo@mein.io>
Tue, 27 Nov 2018 14:23:41 +0000 (15:23 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 27 Nov 2018 14:25:05 +0000 (15:25 +0100)
commit2509b5984d026f285e5768fec5933ef72f37fbd8
tree09bd9065a96d8c6c6f9e95f19ad9362d5a3e5a27
parent2e36e09303c9b0054d1ead830d841ae170197db7
luci-base: dispatcher: use consistent ordering

Use the same ordering logic for building the dispatch tree and for
querying the children of a given node.

Fixes #2338.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua