src/SweetORM/Database/QueryGenerator.php
public function generateOrder($sortBy, $sortOrder, &$order)
    {
        if (! empty($sortBy)) {
            if (empty($sortOrder)) { // @codeCoverageIgnore
                $sortOrder = "ASC"; // @codeCoverageIgnore
            } // @codeCoverageIgnore

            $order = "$sortBy $sortOrder";
        }
    }
public function generateOrder($sortBy, $sortOrder, &$order)
    {
        if (! empty($sortBy)) {
            if (empty($sortOrder)) { // @codeCoverageIgnore
                $sortOrder = "ASC"; // @codeCoverageIgnore
            } // @codeCoverageIgnore

            $order = "$sortBy $sortOrder";
        }
    }
public function generateOrder ( $ sortBy , $ sortOrder , & $ order ) { if ( ! empty ( $ sortBy ) ) { if ( empty ( $ sortOrder ) ) { // @codeCoverageIgnore $ sortOrder = "ASC" ; // @codeCoverageIgnore } // @codeCoverageIgnore $ order = "$sortBy $sortOrder" ; } }
Generate Order By

@param string $sortBy Column name
@param string $sortOrder Type of order
@param string $order Reference to Order result
Generate Order By