Browse Source

Merged countries sort

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

3
app/js/controllers.js

@ -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);
}); });
}
}); });
}) })

Loading…
Cancel
Save