diff --git a/core/modules/taxonomy/src/Form/OverviewTerms.php b/core/modules/taxonomy/src/Form/OverviewTerms.php index a5b18f1..7c826ae 100644 --- a/core/modules/taxonomy/src/Form/OverviewTerms.php +++ b/core/modules/taxonomy/src/Form/OverviewTerms.php @@ -392,7 +392,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { } // Sort terms, first on weight, second on the current order. - uasort($form_state->getValues(), function ($a, $b) { + uasort($values, function ($a, $b) { // If the terms have different weights, sort by weight. if ($result = SortArray::sortByWeightElement((array) $a, (array) $b)) { return $result;