ActiveRecord.php
public function getListingOrderArray()
    {
        $count = static::find()
            ->count();

        $array = [];
        for ($i = 1; $i <= $count; $i++) {
            $array[$i] = $i;
        }

        return $array;
    }
public function getListingOrderArray()
    {
        $count = static::find()
            ->count();

        $array = [];
        for ($i = 1; $i <= $count; $i++) {
            $array[$i] = $i;
        }

        return $array;
    }
return array of listing order
@return array