How to do sorting on two parameters?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
Did sort to first showed unprocessed orders and then processed
$dataProvider = new ActiveDataProvider([ 'query' => $query, 'sort' => [ 'defaultOrder' => [ 'processed' => SORT_ASC ] ] ]);


But need to be further sorted by date. First fresh unprocessed orders and then older.

One option I did and how to make the two parameters?
by | 13 views

1 Answer

0 like 0 dislike
'defaultOrder' => [ 'processed' => SORT_ASC, 'date' => SORT_ASC, ]
by

Related questions

0 like 0 dislike
1 answer
asked Jun 7, 2019 by Ballly
0 like 0 dislike
2 answers
asked May 21, 2019 by serg_small_developer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,573 users