Piwik\Plugins\Live\Visitor::sortByServerTime PHP Méthode

sortByServerTime() private static méthode

private static sortByServerTime ( $a, $b )
    private static function sortByServerTime($a, $b)
    {
        $ta = strtotime($a['serverTimePretty']);
        $tb = strtotime($b['serverTimePretty']);
        if ($ta < $tb) {
            return -1;
        }
        if ($ta == $tb) {
            if ($a['idlink_va'] > $b['idlink_va']) {
                return 1;
            }
            return -1;
        }
        return 1;
    }