Always pass on a compare function to sort

This commit is contained in:
Bart van den Eijnden
2015-12-16 10:03:10 +01:00
parent dd4e88525e
commit e0be143ed5
11 changed files with 54 additions and 9 deletions

View File

@@ -2001,7 +2001,7 @@ ol.render.canvas.ReplayGroup.prototype.replay = function(
/** @type {Array.<number>} */
var zs = Object.keys(this.replaysByZIndex_).map(Number);
zs.sort();
zs.sort(ol.array.defaultCompare);
// setup clipping so that the parts of over-simplified geometries are not
// visible outside the current extent when panning