Im working on displaying json data in table view and passing table view data to next view controller. Here i want to sort my json response based on name and then display in table view. here is my json data
"data": [
{
"_id": "597323707c691a6b27c63bcc",
"name": "Adidas",
"file": "http://104.236.67.117:5000/uploads/1500717927565.jpg",
"logo": "http://104.236.67.117:5000/uploads/1500717910702.jpg",
},
{
"_id": "597323707c691a6b27c63bcc",
"name": "Bibo",
"file": "http://104.236.67.117:5000/uploads/1500717927565.jpg",
"logo": "http://104.236.67.117:5000/uploads/1500717910702.jpg",
}, {
"_id": "597323707c691a6b27c63bcc",
"name": "Caprese",
"file": "http://104.236.67.117:5000/uploads/1500717927565.jpg",
"logo": "http://104.236.67.117:5000/uploads/1500717910702.jpg",
}, {
"_id": "597323707c691a6b27c63bcc",
"name": "DK",
"file": "http://104.236.67.117:5000/uploads/1500717927565.jpg",
"logo": "http://104.236.67.117:5000/uploads/1500717910702.jpg",
}
i am able to sort only name but not the whole object. Can any one solve this issue for me? It will be very helpful for me... thanks in advance.....