Skip to content
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

sortBy nor orderBy not working properly #5790

Open
gaetansnl opened this issue Dec 20, 2023 · 0 comments
Open

sortBy nor orderBy not working properly #5790

gaetansnl opened this issue Dec 20, 2023 · 0 comments

Comments

@gaetansnl
Copy link

Reopen of #5650 . The issue seems to be present on latest version 4.17.21

Hi,
Nor sortBy, nor orderBy, sorts the data in single table column, asc or desc properly (also the data have empty strings). Column is out of order, only the empty strings goes on top or on the bottom, asc/desc.

    orderBy(
    items,
      [
        (item: T, index: number) =>
          item.someArray[
            index
          ]?.moreNested[0]?.moreMoreNested[0]?.toLowerCase(),
        '',
      ],
      'asc'
    );

Data is shown is presented like this:


Column
---
NULL (means empty cell)
new document 11 2222
Gggg Noc Doc
iiii 123

Expected result, iiii 123 to be in the middle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant