You are here

private static function TagService::sortByCount in TagCloud 2.0.x

Same name and namespace in other branches
  1. 8 src/TagService.php \Drupal\tagclouds\TagService::sortByCount()
  2. 1.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\tagclouds

Code

private static function sortByCount($a, $b) {
  return $a->count > $b->count;
}