diff --git a/src/components/data-table/sort_filter_worker.ts b/src/components/data-table/sort_filter_worker.ts index 36e756f91e..8fcb9cc3ae 100644 --- a/src/components/data-table/sort_filter_worker.ts +++ b/src/components/data-table/sort_filter_worker.ts @@ -67,11 +67,11 @@ const sortData = ( } } - // Ensure "undefined" is always sorted to the bottom - if (valA === undefined && valB !== undefined) { + // Ensure "undefined" and "null" are always sorted to the bottom + if (valA == null && valB != null) { return 1; } - if (valB === undefined && valA !== undefined) { + if (valB == null && valA != null) { return -1; }