src/Versioned.php
protected function augmentSQLVersionedAll(SQLSelect $query)
    {
        // Query against _Versions table first
        $this->augmentSQLVersioned($query);

        $baseTable = $this->baseTable();
        $query->addOrderBy("\"{$baseTable}_Versions\".\"Version\"");
    }
protected function augmentSQLVersionedAll(SQLSelect $query)
    {
        // Query against _Versions table first
        $this->augmentSQLVersioned($query);

        $baseTable = $this->baseTable();
        $query->addOrderBy("\"{$baseTable}_Versions\".\"Version\"");
    }
protected function augmentSQLVersionedAll ( SQLSelect $ query ) { // Query against _Versions table first $ this -> augmentSQLVersioned ( $ query ) ; $ baseTable = $ this -> baseTable ( ) ; $ query -> addOrderBy ( "\"{$baseTable}_Versions\".\"Version\"" ) ; }
If all versions are requested, ensure that records are sorted by this field

@param SQLSelect $query
If all versions are requested ensure that records are sorted by this field