Merged countries sort

This commit is contained in:
Igor Zhukov 2014-09-28 22:15:56 +04:00
parent f6ef43d3b0
commit a257ded3cc

View File

@ -2519,10 +2519,11 @@ angular.module('myApp.controllers', ['myApp.i18n'])
} }
} }
} }
if (String.prototype.localeCompare) {
$scope.countries.sort(function(a, b) { $scope.countries.sort(function(a, b) {
return a.name.localeCompare(b.name); return a.name.localeCompare(b.name);
}); });
}
}); });
}) })