protected function prepareList(array $list)
    {
        foreach ($list as &$item) {
            if (!empty($item['data']['conditions'])) {
                gplcart_array_sort($item['data']['conditions']);
            }
        }

        return $list;
    }
protected function prepareList(array $list)
    {
        foreach ($list as &$item) {
            if (!empty($item['data']['conditions'])) {
                gplcart_array_sort($item['data']['conditions']);
            }
        }

        return $list;
    }
protected function prepareList ( array $ list ) { foreach ( $ list as & $ item ) { if ( ! empty ( $ item [ 'data' ] [ 'conditions' ] ) ) { gplcart_array_sort ( $ item [ 'data' ] [ 'conditions' ] ) ; } } return $ list ; }
Prepare an array of triggers
@param array $list
@return array
Prepare an array of triggers