You are here

private function TagadelicCloudBase::cb_sort_by_count in Tagadelic 8.3

File

src/TagadelicCloudBase.php, line 110

Class

TagadelicCloudBase
Defines a base TagadelicCloud implementation.

Namespace

Drupal\tagadelic

Code

private function cb_sort_by_count($a, $b) {
  $ac = $a
    ->getCount();
  $bc = $b
    ->getCount();
  if ($ac == $bc) {
    return 0;
  }

  //Highest first, High to low
  return $ac < $bc ? +1 : -1;
}