I'm working with nested table Example data:
$scope.building =
[
{
"id": 1,
"name": "first",
"ownBlock": [
{
"id": 1,
"name": "Block 1"
},
{
"id": 2,
"name": "Block 2"
}
]
},
{
"id": 2,
"name": "second",
"ownBlock": [
{
"id": 3,
"name": "Block 1"
},
{
"id": 4,
"name": "Block 2"
}
]
}
]
When I sort ownBlock of id 2 , It will sort child data of Id 1 too
<tr ng-repeat="block in data.ownBlock| orderBy : sortColumn.Field : sortColumn.Order">.... </tr>
I know the reason but I dont have solution to fix that . Hope it helps