indexmenu js option have unexpected behavior, but tsort option is useful.