Handle NULL values appropriately when sorting backgrid tables. Fixes #4242

This commit is contained in:
Aditya Toshniwal
2019-11-01 12:04:40 +00:00
committed by Dave Page
parent f8e0b54836
commit f85efb2797
2 changed files with 3 additions and 0 deletions

View File

@@ -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;
}