Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 16042

Denotes questions related to sorting collections in Magento.

1 vote
1 answer
2k views

Sorting fields in customer address form edit admin section

I'm very confused by sorting some fields in customer address edit form. I want to move City after State/Province and Subdistrict after City. How can I do that ? …
HungDQ's user avatar
  • 812
5 votes
Accepted

Cannot sorting joined column in Magento Grid

I have founded the answered after a few days. The solution for this kind of problem is added this function to grid: (overwrite _setCollectionOrder in parent grid class). protected function _setCollec …
HungDQ's user avatar
  • 812
3 votes
1 answer
2k views

Cannot sorting joined column in Magento Grid

I have joined 2 columns to customer grid, I can make them filterable but I don't know how to make them sortable. Here is my _prepareCollection function: protected function _prepareCollection() { …
HungDQ's user avatar
  • 812
5 votes
1 answer
765 views

How do I make this custom expression column I have developed for the customer grid display s...

I'm trying to add an expression column to collection in customer grid. But it not sortable. I'm not sure that using addExpressionAttributeToSelect or addExpressionFieldToSelect function can solve this …
HungDQ's user avatar
  • 812