Search for _sort_

  1. Search 7.x for _sort_
  2. Search 8.9.x for _sort_
  3. Search 10.3.x for _sort_
  4. Search 11.x for _sort_
  5. Other projects
Title Object type File name Summary
DatabaseTestController::testTablesortFirst function core/modules/system/tests/modules/database_test/src/Controller/DatabaseTestController.php Runs a tablesort query with a second order_by after and returns the results.
Date::getSortName function core/modules/views/src/Plugin/views/argument/Date.php Return a description of how the argument would normally be sorted.
DblogOperations::clickSortable function core/modules/dblog/src/Plugin/views/field/DblogOperations.php Determines if this field is click sortable.
DefaultLazyPluginCollection::sortHelper function core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php Provides uasort() callback to sort plugins.
DefaultLazyPluginCollectionTest::providerTestSortHelper function core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php Provides test data for testSortHelper.
DefaultLazyPluginCollectionTest::testSortHelper function core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php @covers ::sortHelper[[api-linebreak]]
@dataProvider providerTestSortHelper
EntityField::clickSortable function core/modules/views/src/Plugin/views/field/EntityField.php Determines if this field is click sortable.
EntityOperations::clickSortable function core/modules/views/src/Plugin/views/field/EntityOperations.php Determines if this field is click sortable.
EntityQueryAggregateTest::assertSortedResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Asserts the results as expected regardless of order in rows.
EntityReferenceSelectionSortTest class core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceSelection/EntityReferenceSelectionSortTest.php Tests sorting referenced items.
EntityReferenceSelectionSortTest.php file core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceSelection/EntityReferenceSelectionSortTest.php
EntityReferenceSelectionSortTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceSelection/EntityReferenceSelectionSortTest.php Modules to enable.
EntityReferenceSelectionSortTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceSelection/EntityReferenceSelectionSortTest.php
EntityReferenceSelectionSortTest::testSort function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceSelection/EntityReferenceSelectionSortTest.php Assert sorting by field and property.
EntityReferenceWidgetTest::sortableUpdate function core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php Define to provide any necessary callback following layout change.
ExposedFormTest::testExposedSortAndItemsPerPage function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Tests exposed forms with exposed sort and items per page.
ExtensionList::sortByName function core/lib/Drupal/Core/Extension/ExtensionList.php Array sorting callback; sorts extensions by their name.
FieldHandlerInterface::clickSortable function core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php Determines if this field is click sortable.
FieldKernelTest::testClickSortable function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Tests whether the filters are click sortable as expected.
FieldPluginBase::clickSortable function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Determines if this field is click sortable.
FieldTest::providerSortOrders function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php Provides sort orders for clickSort() test methods.
FieldTest::testClickSortWithBaseField function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @dataProvider providerSortOrders
FieldTest::testClickSortWithConfiguredField function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @dataProvider providerSortOrders
FieldTest::testClickSortWithOutConfiguredColumn function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @dataProvider providerSortOrders
FieldWebTest::clickSortLoadIdsFromOutput function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Small helper function to get all ids in the output.
FieldWebTest::testClickSorting function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Tests the click sorting functionality.
FieldWebTest::testClickSortingDistinct function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Tests the default click sorting functionality with distinct.
FilterPluginCollection::sortHelper function core/modules/filter/src/FilterPluginCollection.php Provides uasort() callback to sort plugins.
FormTest::testSelectSorting function core/modules/system/tests/src/Functional/Form/FormTest.php Tests sorting and not sorting of options in a select element.
FormTest::validateSelectSorting function core/modules/system/tests/src/Functional/Form/FormTest.php Validates that the options are in the right order in a select.
FormTestSelectForm::makeSortableOptions function core/modules/system/tests/modules/form_test/src/Form/FormTestSelectForm.php Makes and returns a set of options to test sorting on.
GroupByNumeric::getSortName function core/modules/views/src/Plugin/views/argument/GroupByNumeric.php Return a description of how the argument would normally be sorted.
hook_views_plugins_sort_alter function core/modules/views/views.api.php Modify the list of available views sort handler plugins.
ImageEffectPluginCollection::sortHelper function core/modules/image/src/ImageEffectPluginCollection.php Provides uasort() callback to sort plugins.
LanguageUnitTest::providerTestSortArrayOfLanguages function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php Provides data for testSortArrayOfLanguages.
LanguageUnitTest::testSortArrayOfLanguages function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php Tests sorting an array of language objects.
LayoutBuilderSortTrait trait core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderSortTrait.php LayoutBuilderSortTrait, provides callback for simulated layout change.
LayoutBuilderSortTrait.php file core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderSortTrait.php
LayoutBuilderSortTrait::sortableUpdate function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderSortTrait.php Define to provide any necessary callback following layout change.
LayoutPluginManager::getSortedDefinitions function core/lib/Drupal/Core/Layout/LayoutPluginManager.php
LayoutPluginManagerInterface::getSortedDefinitions function core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php
LayoutPluginManagerTest::testGetSortedDefinitions function core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php @covers ::getSortedDefinitions[[api-linebreak]]
LoggerChannel::sortLoggers function core/lib/Drupal/Core/Logger/LoggerChannel.php Sorts loggers according to priority.
LoggerChannelTest::testSortLoggers function core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php Tests LoggerChannel::addLoggers().
Media::getAvailableSorts function core/modules/media/src/Plugin/views/wizard/Media.php Gets the availableSorts property.
MediaLibrarySelectForm::clickSortable function core/modules/media_library/src/Plugin/views/field/MediaLibrarySelectForm.php Determines if this field is click sortable.
MediaLibraryWidget::getAllowedMediaTypeIdsSorted function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php Gets the enabled media type IDs sorted by weight.
MenuUiNodeTypeTest::assertMenuNamesAreSorted function core/modules/menu_ui/tests/src/Kernel/MenuUiNodeTypeTest.php Asserts that the available menu names are sorted alphabetically by label.
MigrateFieldPluginManager::sortDefinitions function core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php Sorts a definitions array.
MimeTypeGuesser::$sortedGuessers property core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php Holds the array of guessers sorted by priority.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.