Fix bug 661 - comparison bug in loop macro in HopObject.js

This commit is contained in:
hns 2009-07-06 12:32:09 +00:00
parent 235a1342f8
commit 032d6dcae7

View file

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