You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Descending order: true values are on top, followed by false and null values
Ascending order: false and null values are on top, followed by true values
Actual result
Descending order: null values are on top, followed by true values, followed by false values
Ascending order: null values are on top, followed by false values, followed by true values
Note
In user interfaces both null and false are likely to represent the same state and can be displayed e.g. as an empty checkbox. Sorting in descending order will result in empty checkboxes followed by checked checkboxes followed by empty checkboxes.
The text was updated successfully, but these errors were encountered:
vyacheslav-pushkin
changed the title
When sorting by a boolean field treat null as false
When sorting or filtering by a boolean field treat null as false
Sep 26, 2019
Environment
1. Sorting
Sorting by a boolean field containing nulls results in nulls being on top regardless of sort order
Request examples
Descending order:
Ascending order:
Expected result
Descending order:
true
values are on top, followed byfalse
andnull
valuesAscending order:
false
andnull
values are on top, followed bytrue
valuesActual result
Descending order:
null
values are on top, followed bytrue
values, followed byfalse
valuesAscending order:
null
values are on top, followed byfalse
values, followed bytrue
valuesNote
In user interfaces both
null
andfalse
are likely to represent the same state and can be displayed e.g. as an empty checkbox. Sorting in descending order will result in empty checkboxes followed by checked checkboxes followed by empty checkboxes.2. Filtering
null
values are never returnedExample
Filter:
Records:
Expected result
Returns records with id 1 and 2
Actual result
Returns record with id 1
The text was updated successfully, but these errors were encountered: