I have a model that contains a list of countries
$scope.model = {
name: "foo",
countriesVisited: ["CA", "AR", "GB", "FR", "MX", "AU", "IE", "RU", "IT", "ES", "IN", "US", "NL", "DE", "CL", "BR", "JP", "NZ", "PL"]
}
Using an ng-repeat directive lists them in the order they are shown. Putting an orderBy filter does order the items, but the order is seemingly random. See this plunker
Remove the filter and watch the output shift. Paste it back and it's in a weird order.
Is there a way to get the countriesVisited array to order without moving it to it's own $scope variable?