Remove use of goog.array.sort

Fixes #4160
This commit is contained in:
Frederic Junod
2015-11-19 16:53:04 +01:00
parent 627abaf1a7
commit a4fb2501d8
10 changed files with 12 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
goog.provide('ol.tilegrid.WMTS');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('ol.proj');
goog.require('ol.tilegrid.TileGrid');
@@ -104,7 +103,7 @@ ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet =
// swap origin x and y coordinates if axis orientation is lat/long
var switchOriginXY = projection.getAxisOrientation().substr(0, 2) == 'ne';
goog.array.sort(matrixSet[matrixIdsPropName], function(a, b) {
matrixSet[matrixIdsPropName].sort(function(a, b) {
return b[scaleDenominatorPropName] - a[scaleDenominatorPropName];
});