Skip to content

Sorting collection by multiple columns #2547

Answered by yajra
Gelidan asked this question in Q&A
Discussion options

You must be logged in to vote

Use order instead of orderBy

->order([[8, 'asc'], [1, 'asc']])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gelidan
Comment options

@yajra
Comment options

@Gelidan
Comment options

Answer selected by Gelidan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2547 on December 23, 2020 12:24.