Fix node sorting with paranoid delete