diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php index b2e79c9..fdd3ac6 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php @@ -98,7 +98,6 @@ function testTaxonomyAdminChangingWeights() { // Load the vocabularies from the database. $this->container->get('plugin.manager.entity')->getStorageController('taxonomy_vocabulary')->resetCache(); $new_vocabularies = taxonomy_vocabulary_load_multiple(); - taxonomy_vocabulary_sort($new_vocabularies); // Check that the weights are saved in the database correctly. foreach ($vocabularies as $key => $vocabulary) { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyUnitTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyUnitTest.php index e427b4e..6c809e9 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyUnitTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyUnitTest.php @@ -123,7 +123,6 @@ function testTaxonomyVocabularyLoadMultiple() { // Fetch all of the vocabularies using taxonomy_vocabulary_load_multiple(). // Confirm that the vocabularies are ordered by weight. $vocabularies = taxonomy_vocabulary_load_multiple(); - taxonomy_vocabulary_sort($vocabularies); $this->assertEqual(array_shift($vocabularies)->id(), $vocabulary1->id(), 'Vocabulary was found in the vocabularies array.'); $this->assertEqual(array_shift($vocabularies)->id(), $vocabulary2->id(), 'Vocabulary was found in the vocabularies array.'); $this->assertEqual(array_shift($vocabularies)->id(), $vocabulary3->id(), 'Vocabulary was found in the vocabularies array.'); diff --git a/core/modules/taxonomy/taxonomy.admin.inc b/core/modules/taxonomy/taxonomy.admin.inc index 929543d..b44ae1d 100644 --- a/core/modules/taxonomy/taxonomy.admin.inc +++ b/core/modules/taxonomy/taxonomy.admin.inc @@ -17,7 +17,6 @@ */ function taxonomy_overview_vocabularies($form) { $vocabularies = taxonomy_vocabulary_load_multiple(); - taxonomy_vocabulary_sort($vocabularies); $form['vocabularies'] = array( '#type' => 'table', '#empty' => t('No vocabularies available. Add vocabulary.', array('@link' => url('admin/structure/taxonomy/add'))), diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index e10e9ea..d824da9 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -889,18 +889,6 @@ function taxonomy_vocabulary_load_multiple(array $vids = NULL) { } /** - * Sorts vocabularies by its weight and label. - * - * @param array $vocabularies - * An array of \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary objects. - */ -function taxonomy_vocabulary_sort(array &$vocabularies = array()) { - // @todo Remove error suppressing when http://drupal.org/node/1799600 is - // fixed. - @uasort($vocabularies, 'Drupal\Core\Config\Entity\ConfigEntityBase::sort'); -} - -/** * Return the taxonomy vocabulary entity matching a vocabulary ID. * * @param int $vid