optimize ListOrder. avoid stack overflow
Merge pull request #472 from xuwei-k/list-order

optimize ListOrder. avoid stack overflow