public function getCrons(): array
    {
        ksort($this->crons);
        $crons = [];

        foreach ($this->crons as $priority => $cs) {
            foreach ($cs as $cron) {
                $crons[$priority . ';' . $cron->getAlias()] = $cron;
            }
        }

        return $crons;
    }
public function getCrons(): array
    {
        ksort($this->crons);
        $crons = [];

        foreach ($this->crons as $priority => $cs) {
            foreach ($cs as $cron) {
                $crons[$priority . ';' . $cron->getAlias()] = $cron;
            }
        }

        return $crons;
    }
public function getCrons ( ) : array { ksort ( $ this -> crons ) ; $ crons = [ ] ; foreach ( $ this -> crons as $ priority => $ cs ) { foreach ( $ cs as $ cron ) { $ crons [ $ priority . ';' . $ cron -> getAlias ( ) ] = $ cron ; } } return $ crons ; }
Sort and return crons list.

@return CronInterface[] crons list
Sort and return crons list .