[TYPO3-english] extbase findAll() default_sortby

Peter Linzenkirchner liste at lisardo.de
Thu Aug 1 13:24:48 CEST 2013


Hello Muriel, 

try this: 

$query->setOrderings(array('sorting' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING));


Peter


Am 01.08.2013 um 12:54 schrieb Muriel le Pair <typo3 at strangefruit.nl>:

> Op 01-08-13 12:42, Henjo Hoeksma | Stylence schreef:
>> Hi Muriel,
>> 
>> I understand. But also ordering by uid is done either ascending or
>> descending.... I do not see the problem to be honest... but maybe I still
>> get you wrong ;-)
> 
> The question is very simple.
> I don't want to order by uid (ascending or descending) but on the sorting column because this is much more flexible.
> 
> So how to you change the column that is used to sort on in extbase?
> 
> SELECT * from table ORDER BY sorting.
> 
> --
> kind regards,
> 
> Muriel le Pair
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

--
Xing: http://www.xing.com/profile/Peter_Linzenkirchner
Web: http://www.typo3-lisardo.de
Facebook: http://tinyurl.com/lisardo-multimedia



More information about the TYPO3-english mailing list