Sort by level correctly
Merge pull request #149 from theodi/node-sorting

Sort by level correctly