Skip to content

Commit

Permalink
Merge pull request ngageoint#392 from welchyd/slick_sort
Browse files Browse the repository at this point in the history
fix(slickgrid): Use case-insensitive sort in grids
  • Loading branch information
wallw-teal authored Feb 8, 2019
2 parents fd2ca8d + aaceb85 commit 28eaca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/ui/slick/slickgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ os.ui.slick.SlickGridCtrl.prototype.multiColumnSort = function(cols, a, b) {

var t1 = typeof v1;
if (t1 === 'string') {
v1 = v1.trim();
v1 = v1.trim().toLowerCase();

// sort empty strings the same as undefined/null
if (!v1) {
Expand All @@ -1283,7 +1283,7 @@ os.ui.slick.SlickGridCtrl.prototype.multiColumnSort = function(cols, a, b) {

var t2 = typeof v2;
if (t2 === 'string') {
v2 = v2.trim();
v2 = v2.trim().toLowerCase();

// sort empty strings the same as undefined/null
if (!v2) {
Expand Down

0 comments on commit 28eaca0

Please sign in to comment.