diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index bff6ce50..e4acae62 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -665,7 +665,7 @@ module.SortActions = actions.Actions({ var that = this if(method == 'reverse'){ - method = [] + method = 'update' reverse = true } @@ -703,6 +703,11 @@ module.SortActions = actions.Actions({ i = method.indexOf('reverse') } + // can't sort if we know nothing about .images + if(method && method.length > 0 && (!this.images || this.images.length == 0)){ + return + } + // build the compare routine... method = method // remove duplicate methods... @@ -714,6 +719,9 @@ module.SortActions = actions.Actions({ || (function(){ var p = m.split(/\./g) var _get = function(obj){ + if(obj == null){ + return null + } for(var i=0; i