Sort correct node