Dump nodes in sorted order