Browse Source

Merged countries sort

master
Igor Zhukov 10 years ago
parent
commit
a257ded3cc
  1. 9
      app/js/controllers.js

9
app/js/controllers.js

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

Loading…
Cancel
Save