diff --git a/core/HopObject.js b/core/HopObject.js index cc553932..871de378 100644 --- a/core/HopObject.js +++ b/core/HopObject.js @@ -136,7 +136,7 @@ HopObject.prototype.loop_macro = function(param, collection) { if (param.sort) { var allitems = items.list(); var test = allitems[0][param.sort]; - if (!test || isNaN(test)) { + if (test == null || isNaN(test)) { var Sorter = String.Sorter; } else { var Sorter = Number.Sorter;