if (!isset($a['dashboard_contact.weight'])) {
return 1;
}
- return $a['dashboard_contact.weight'] > $b['dashboard_contact.weight'];
+ return $a['dashboard_contact.weight'] <=> $b['dashboard_contact.weight'];
});
}
return Civi::$statics[__CLASS__][__FUNCTION__][$cid] ?? [];