Sort by path length

Might be safer and/or clearer.