function DefaultLazyPluginCollection::sortHelper
Provides uasort() callback to sort plugins.
1 call to DefaultLazyPluginCollection::sortHelper()
- FilterPluginCollection::sortHelper in core/modules/ filter/ src/ FilterPluginCollection.php 
- Provides uasort() callback to sort plugins.
2 methods override DefaultLazyPluginCollection::sortHelper()
- FilterPluginCollection::sortHelper in core/modules/ filter/ src/ FilterPluginCollection.php 
- Provides uasort() callback to sort plugins.
- ImageEffectPluginCollection::sortHelper in core/modules/ image/ src/ ImageEffectPluginCollection.php 
- Provides uasort() callback to sort plugins.
File
- 
              core/lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php, line 97 
Class
- DefaultLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function sortHelper($aID, $bID) {
  $a = $this->get($aID);
  $b = $this->get($bID);
  return strnatcasecmp($a->getPluginId(), $b->getPluginId());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
