So I have an array of javascript object named user with the following format. In an array called users.
{userId: 4, userName: "bob", password: "password", _id: "527abf6ebaa5eb8426000001", __v: 0}
But when i try and print the following objects values using the following lines of html/angular code
<tbody ng:repeat="user in users">
<td ng:repeat="(key, value) in user">{{value}}</td>
</tbody>
I get the following ouput
0 528277c808cab8ac2b000001 password 5 Austin
At first I thought angular was printing the values out in reverse order but then I saw that the userId preceded the userName. So my question is why is angular printing out the values in the order that they are being printed out? My second question is is it possible using angular (key, value) in loop to print in the order of the object, so that userId is first and _v: is last?