Sort by multiple columns

QuestionsSort by multiple columns
jagan asked 7 years ago

How to add query to sort by multiple columns?
Ex: order by comapny asc, join_date desc

1 Answers
anavarro answered 7 years ago

$grid["sortname"] = 'column1 desc,column2 asc,column3';
$g->set_options($grid);

Your Answer

8 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?