-
Notifications
You must be signed in to change notification settings - Fork 40
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
Nullable number columns not supported for sorting #74
Comments
Could you share the entity that was trying to sort? |
Yeah, i have a numerical column that is nullable. I'll can get you an entity but it's just a really basic column that fails to serialize when the value is null. Looking at the logic for this I'm not even sure that a integer column would paginate correctly unless you sorted by multiple columns. If there were many rows with the same value, it would skip over them. Please correct me here if I'm wrong. |
You have to use an unique column as the pagination key. |
In this case I have an entity like:
I should be able to do a sort like (for postgres) The problem is that the parsing of nulls is still busted for this use-case. |
I can work on a PR for this feature but do you have any idea on the best way I should go about implementing this?
The text was updated successfully, but these errors were encountered: