I am trying to get all data ordered asc and desc by child value that inside another child. In main scope of class:

```
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference dbRef = database.getReference("university");

```

i have data structure like this

```
{
"university": {
    "13": {
      "name": "value"
      "exam": {
        "exam_date": "value"
        "reg_date": "value"
      }
    }
    "15": {
      "name": "value"
      "exam": {
        "exam_date": "value"
        "reg_date": "value"
      }
    }
    "20": {
      "name": "value"
      "exam": {
        "exam_date": "value"
        "reg_date": "value"
      }
    }
}

```

}

First I try this way `Query q=dbRef.orderByChild("13/exam/exam_date")`
but it is getting data like when i use ValueEventListener with dbRef directly without ordering.