private static function TagService::sortByCount in TagCloud 1.0.x
Same name and namespace in other branches
- 8 src/TagService.php \Drupal\tagclouds\TagService::sortByCount()
- 2.0.x src/TagService.php \Drupal\tagclouds\TagService::sortByCount()
Callback for usort, sort by count.
Parameters
object $a: The A sample.
object $b: The B sample.
Return value
int comparision result.
See also
:sortTags()
File
- src/
TagService.php, line 219
Class
- TagService
- Class TagService.
Namespace
Drupal\tagcloudsCode
private static function sortByCount($a, $b) {
return $a->count > $b->count;
}