-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
185 sort catalog properties #187
Conversation
@@ -121,7 +121,7 @@ public GenericSearchResult<PropertyDictionaryItem> Search(PropertyDictionaryItem | |||
var sortInfos = criteria.SortInfos; | |||
if (sortInfos.IsNullOrEmpty()) | |||
{ | |||
sortInfos = new[] { new SortInfo { SortColumn = "SortOrder" } }; | |||
sortInfos = new[] { new SortInfo { SortColumn = "SortOrder", SortDirection = SortDirection.Descending } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect.
Sort by SortOrder
then by Alias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added second sort info - by Alias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not descending!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to ascending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read technical details for Issue more careful, you didn't reach the main goal (sort for catalog item property values according to SortOrder)
…y values by SortOrder parameter then by name/alias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorting by SortOrder should be ascending
What about other 3 places? |
I have told with Eugene and double checked this issue from the storefront. And how do you think - should it be described in the task requirements and not in the comments after? I mean sort direction, second sort criteria and so on. |
The issue description doesn't require to sort with descending order. So there was no need to introduce such sorting. |
https://app.zenhub.com/workspaces/vc-operations-564a7a2e8294d8de6364f3d7/issues/virtocommerce/vc-module-catalog/185