luci-base: dispatcher: use consistent ordering
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 <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>

tobiaswaldvogel/luci,nmav/luci,lbthomsen/openwrt-luci,rogerpueyo/luci,nmav/luci,rogerpueyo/luci,nmav/luci,artynet/luci,rogerpueyo/luci,artynet/luci,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,openwrt/luci,Noltari/luci,tobiaswaldvogel/luci,Noltari/luci,openwrt/luci,openwrt-es/openwrt-luci,rogerpueyo/luci,tobiaswaldvogel/luci,openwrt/luci,Noltari/luci,tobiaswaldvogel/luci,nmav/luci,hnyman/luci,hnyman/luci,tobiaswaldvogel/luci,hnyman/luci,Noltari/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,Noltari/luci,tobiaswaldvogel/luci,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,openwrt/luci,Noltari/luci,nmav/luci,rogerpueyo/luci,tobiaswaldvogel/luci,hnyman/luci,hnyman/luci,artynet/luci,Noltari/luci,artynet/luci,rogerpueyo/luci,nmav/luci,nmav/luci,openwrt-es/openwrt-luci,hnyman/luci,artynet/luci,openwrt-es/openwrt-luci,openwrt/luci,rogerpueyo/luci,openwrt/luci,openwrt-es/openwrt-luci,nmav/luci,artynet/luci,tobiaswaldvogel/luci,openwrt/luci,nmav/luci,artynet/luci,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,rogerpueyo/luci,artynet/luci,Noltari/luci,artynet/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,Noltari/luci,openwrt-es/openwrt-luci,openwrt/luci