[2.3-develop] Order grid - Sort by Purchase Date Desc by default #11931
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(cherry picked from commit ad3c18f) #11911
Description
As a customer I expect to see new orders at the top of the grid, however during migration from M1 to M2 - order number length changed, as result new orders are NOT located at the top of grid.
In order to fix this issue for all cases - we're changing default sorting order to "Purchase Date" desc.
As we discussed with @okorshenko in #10185 (comment) sorting order grid by Increment is not good idea. I'm proposing change default sorting from increment_id column to created_at.
Sorting issue happens only in following cases:
NOTE: Order grid sorting saves in ui_bookmark table, so before testing need to execute following SQL:
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist