src/josegonzalez/Queuesadilla/Engine/PdoEngine.php
protected function generatePopOrderSql($options = [])
    {
        $orderPart = 'ORDER BY priority ASC';
        if (isset($options['pop_order']) && $options['pop_order'] === self::POP_ORDER_FIFO) {
            $orderPart = 'ORDER BY created_at ASC';
        }

        return $orderPart;
    }
protected function generatePopOrderSql($options = [])
    {
        $orderPart = 'ORDER BY priority ASC';
        if (isset($options['pop_order']) && $options['pop_order'] === self::POP_ORDER_FIFO) {
            $orderPart = 'ORDER BY created_at ASC';
        }

        return $orderPart;
    }
protected function generatePopOrderSql ( $ options = [ ] ) { $ orderPart = 'ORDER BY priority ASC' ; if ( isset ( $ options [ 'pop_order' ] ) && $ options [ 'pop_order' ] === self :: POP_ORDER_FIFO ) { $ orderPart = 'ORDER BY created_at ASC' ; } return $ orderPart ; }
Generate ORDER sql

@param array $options
@return string
@throws \InvalidArgumentException if the "pop_order" option is not valid or null
Generate ORDER sql