Add @cmp @key @reverse params to expand_tree() and show() methods
to sort nodes in the same level with some rules.