Skip to content

Fix sort cell behavior for query results - #410

Merged
czgu merged 2 commits into
masterfrom
sortcellfix
Feb 3, 2021
Merged

czgu merged 2 commits into
masterfrom
sortcellfix

Conversation

@czgu

@czgu czgu commented Feb 3, 2021

Copy link
Copy Markdown
Collaborator

Previously, there was no unified way to compare between cells while sorting, this means when there are ints and strs, the comparison function changes behavior depending on the values compared.
Now type checking is applied ahead of time (but lazily computed only when sorting happens) so that we only use str sort for strings and int sort for ints

@czgu czgu added bug Something isn't working patch release Bug fix/version bump/small feature labels Feb 3, 2021
Comment thread querybook/webapp/ui/Table/Table.tsx

@franklinbegood franklinbegood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

najs

@czgu
czgu merged commit 4bea468 into master Feb 3, 2021
@czgu
czgu deleted the sortcellfix branch February 3, 2021 21:52
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch release Bug fix/version bump/small feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants