문제

How can I sort a PHPActiveRecord array alphabetically?

도움이 되었습니까?

해결책

Well i ended up getting the array already ordered with phpactiverecord and order_by:

$books = Book::find('all', array('order' => 'title_en asc'));

and it sort of works...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top