Sort PHPActiveRecord array of objects alphabetically
-
17-03-2021 - |
문제
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...
제휴하지 않습니다 StackOverflow