add:  this.resolutions.sort( function ascend(a,b) { return(b-a); }); 
context:     initResolutions: function() {                if ((this.scales != null) || (this.resolutions != null)) {          //preset levels            if (this.scales != null) {                this.resolutions = new Array();                for(var i = 0; i < this.scales.length; i++) {                    this.resolutions[i] =                        OpenLayers.Util.getResolutionFromScale(this.scales[i],                                                               this.units);                }            }            this.numZoomLevels = this.resolutions.length;        } else {          //maxResolution and numZoomLevels                        this.resolutions = new Array();                        // determine maxResolution            if (this.minScale) {                this.maxResolution =                     OpenLayers.Util.getResolutionFromScale(this.minScale,                                                            this.units);            } else if (this.maxResolution == "auto") {                var viewSize = this.map.getSize();                var wRes = this.maxExtent.getWidth() / viewSize.w;                var hRes = this.maxExtent.getHeight()/ viewSize.h;                this.maxResolution = Math.max(wRes, hRes);            }             // determine minResolution            if (this.maxScale != null) {                           this.minResolution =                     OpenLayers.Util.getResolutionFromScale(this.maxScale);            } else if ((this.minResolution == "auto") &&                        (this.minExtent != null)){                var viewSize = this.map.getSize();                var wRes = this.minExtent.getWidth() / viewSize.w;                var hRes = this.minExtent.getHeight()/ viewSize.h;                this.minResolution = Math.max(wRes, hRes);            }             // determine numZoomLevels            if (this.minResolution != null) {                var ratio = this.maxResolution / this.minResolution;                this.numZoomLevels =                     Math.floor(Math.log(ratio) / Math.log(2)) + 1;            }                        // now we have numZoomLevels and maxResolution,             //  we can populate the resolutions array            for (var i=0; i < this.numZoomLevels; i++) {                this.resolutions.push(this.maxResolution / Math.pow(2, i));            }            }    },
meta: 4411	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4411/d99ae5ecdfb75d9457356a8585e045a7c7e0eee6/Layer.js/buggy/lib/OpenLayers/Layer.js