mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle NULL values appropriately when sorting backgrid tables. Fixes #4242
This commit is contained in:
committed by
Dave Page
parent
f8e0b54836
commit
f85efb2797
@@ -161,6 +161,8 @@ define([
|
||||
|
||||
// compare as usual
|
||||
if (l === r) return 0;
|
||||
else if (l === null && r != null) return -1;
|
||||
else if (l != null && r === null) return 1;
|
||||
else if (l < r) return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user