Skip to content

Conversation

@georgianastasov
Copy link
Contributor

Closes #14333

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

const sortingDirection = isDescendingDirection ? SortingDirection.Desc : SortingDirection.Asc;

this.uniqueValues = this.column.sortStrategy.sort(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we be certain that everyone would want that? If this change is indeed necessary, we should probably think of a way to give them control on this, not to guess what should happen.

return value;
}

private checkSortingDirection(items: any[]): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'checkSortingDirection' name does not imply that it would return true when the direction is descending. We need a more appropriate name.

@georgianastasov georgianastasov deleted the ganastasov/fix-14333-master branch July 18, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment