compareCategories() public method

public compareCategories ( $catIdA, $subcatIdA, $orderA, $catIdB, $subcatIdB, $orderB )
Example #1
0
 /**
  * API metadata are sorted by category/name,
  * with a little tweak to replicate the standard Piwik category ordering
  *
  * @param array $a
  * @param array $b
  * @return int
  */
 public function sortReports($a, $b)
 {
     return $this->reportsProvider->compareCategories($a['category'], $a['subcategory'], $a['order'], $b['category'], $b['subcategory'], $b['order']);
 }