I have this array and I was wondering if I could sort it with the properties comments.count and likes.count separately. 
For example I could just have a function to call using likes.count parameter or comments.count parameter.
{
    "attribution": null,
    "tags": [
    ],
    "type": "",
    "location": null,
    "comments": {
        "count": 2,
        "data": [
            {
                "created_time": "1385670850",
                "text": "Holy shit",
                "from": {
                    "username": "someone",
                    "profile_picture": "http://url.com/profiles/profile_191120775_75sq_1365830292.jpg",
                    "id": "191120775"
                },
                "id": "599372997379438683"
            },
            {
                "created_time": "1385680581",
                "text": "",
                "from": {
                    "username": "someone",
                    "profile_picture": "http://url.com/profiles/profile_1523167_75sq_1389544912.jpg",
                    "id": "1523167"
                },
                "id": "599454624038205610"
            }
        ]
    },
    "likes": {
        "count": 6,
        "data": [
            {
                "username": "someone",
                "profile_picture": "http://url.com/profiles/profile_2169761_75sq_1389075971.jpg",
                "id": "2169761"
            },
            {
                "username": "rashmityagi",
                "profile_picture": "http://url.com/profiles/profile_393770264_75sq_1388911033.jpg",
                "id": "393770264"
            },
            {
                "username": "tylerferweda",
                "profile_picture": "http://url.com/profiles/profile_191120775_75sq_1365830292.jpg",
                "id": "191120775"
            },
            {
                "username": "cbolts",
                "profile_picture": "http://url.com/profiles/profile_1523167_75sq_1389544912.jpg",
                "id": "1523167"
            }
        ]
    }
},
{
    "attribution": null,
    "tags": [
    ],
    "type": "",
    "location": null,
    "comments": {
        "count": 10,
        "data": [
            {
                "created_time": "1385670850",
                "text": "Holy shit",
                "from": {
                    "username": "someone",
                    "profile_picture": "http://url.com/profiles/profile_191120775_75sq_1365830292.jpg",
                    "id": "191120775"
                },
                "id": "599372997379438683"
            },
            {
                "created_time": "1385680581",
                "text": "",
                "from": {
                    "username": "someone",
                    "profile_picture": "http://url.com/profiles/profile_1523167_75sq_1389544912.jpg",
                    "id": "1523167"
                },
                "id": "599454624038205610"
            }
        ]
    },
    "likes": {
        "count": 20,
        "data": [
            {
                "username": "someone",
                "profile_picture": "http://url.com/profiles/profile_2169761_75sq_1389075971.jpg",
                "id": "2169761"
            },
            {
                "username": "rashmityagi",
                "profile_picture": "http://url.com/profiles/profile_393770264_75sq_1388911033.jpg",
                "id": "393770264"
            },
            {
                "username": "tylerferweda",
                "profile_picture": "http://url.com/profiles/profile_191120775_75sq_1365830292.jpg",
                "id": "191120775"
            },
            {
                "username": "cbolts",
                "profile_picture": "http://url.com/profiles/profile_1523167_75sq_1389544912.jpg",
                "id": "1523167"
            }
        ]
    }
},
 
     
     
    