Sort nodes by level, then name
Merge pull request #147 from theodi/node-sorting

Sort nodes by level, then name