private function order()
    {
        $result = [];

        $data = $this->request;

        if ($data['table1'] > $data['table2']) {
            $result['first'] = $data['table2'];
            $result['second'] = $data['table1'];
        } else {
            $result['first'] = $data['table1'];
            $result['second'] = $data['table2'];
        }

        return $result;
    }
private function order()
    {
        $result = [];

        $data = $this->request;

        if ($data['table1'] > $data['table2']) {
            $result['first'] = $data['table2'];
            $result['second'] = $data['table1'];
        } else {
            $result['first'] = $data['table1'];
            $result['second'] = $data['table2'];
        }

        return $result;
    }
private function order ( ) { $ result = [ ] ; $ data = $ this -> request ; if ( $ data [ 'table1' ] > $ data [ 'table2' ] ) { $ result [ 'first' ] = $ data [ 'table2' ] ; $ result [ 'second' ] = $ data [ 'table1' ] ; } else { $ result [ 'first' ] = $ data [ 'table1' ] ; $ result [ 'second' ] = $ data [ 'table2' ] ; } return $ result ; }
Determine which table is ordered alphabetically.

@return array $tables
Determine which table is ordered alphabetically .