From 032b1823adc27c88e2e72919eda74a182705b879 Mon Sep 17 00:00:00 2001 From: Jason Edelman Date: Mon, 4 Feb 2013 23:36:35 -0800 Subject: [PATCH] fix for null --- jquery.isotope.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 975b32d..5d4373a 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -570,8 +570,8 @@ , sortDir = this.options.sortAscending ? 1 : -1 , len = sortBy.length , sortFunc = function (a, b){ - isNaN(a) && (a = a.toLowerCase()); - isNaN(b) && (b = b.toLowerCase()); + a && isNaN(a) && (a = a.toLowerCase()); + b && isNaN(b) && (b = b.toLowerCase()); return ( a > b ) ? 1 : ( a < b ) ? -1 : 0; } ;