I have the userdata out of my passport implementation and i will show them in the admin panel.
$scope.users = [
{
"id": "1",
"local": [
{"email": "test1@email.de"},
{"name": "Holger"}
]
},
{
"id": "2",
"local": [
{"email": "test2@email.de"},
{"name": "Robert"}
]
},
{
"id": "3",
"facebook": [
{"email": "test3@email.de"},
{"name": "Robert"}
]
}
]
How can i group / order the data depending on the index?
For example:
local
1 Holger test1@email.de
2 Robert test2@email.de
facebook
3 Robert test3@email.de
and how is it possible to list the array in local or facebook undepending of the index.