public function OgResolvedGroupCollectionInterface::sort in Organic groups 8
Sorts the groups in the collection according to their vote count.
The weight of each vote is taken into account.
1 method overrides OgResolvedGroupCollectionInterface::sort()
- OgResolvedGroupCollection::sort in src/
OgResolvedGroupCollection.php - Sorts the groups in the collection according to their vote count.
File
- src/
OgResolvedGroupCollectionInterface.php, line 122
Class
- OgResolvedGroupCollectionInterface
- Interface for classes providing a collection of resolved groups.
Namespace
Drupal\ogCode
public function sort();