protected function _sortByNote($a, $b) { if ($a['note'] == $b['note']) { return 0; } return $a['note'] > $b['note'] ? 1 : -1; }