title: Get firebase data order by descending date key
body: <p>Good Afternoon. I'm having a problem whenever I'm displaying the data from <code>firebase</code> . It was shown in a <code>recyclerview</code> but the arrangement in the <code>recyclerview</code> must the latest date first. </p>
  
  <p>The date 2/1/2018 must be first on the list.  Here is the codes on how I select the data.</p>
  
  <pre><code>myRef = FirebaseDatabase.getInstance().getReference("complaints");
  
  
          myRef.addValueEventListener(new ValueEventListener() {
              @Override
              public void onDataChange(DataSnapshot dataSnapshot) {
                  try{
  
  
                      list = new ArrayList&lt;Blog&gt;();
                      for(DataSnapshot dataSnapshot1 :dataSnapshot.getChildren()){
  
                          Blog value = dataSnapshot1.getValue(Blog.class);
                          Boolean Posted = value.getPosted();
                          String complaint_type = value.getComplaintType();
  
                          if (Posted== true &amp;&amp; complaint_type.equals("Civic Complaint")) {
                              int ComplaintNo = value.getComplaintNo();
                              String Description = value.getDescription();
                              String Date = value.getDate();
                              String MediaURL = value.getMediaURL();
                              String Time = value.getTime();
                              String Address = value.getAddress();
                              int count_satisfiedd = value.getCount_Satisfied();
                              int count_dissatisfied = value.getCount_Dissatisfied();
                              boolean posted = value.getPosted();
  
  
                              Blog fire = new Blog();
                              fire.setComplaintNo(ComplaintNo);
                              fire.setDescription(Description);
                              fire.setDate(Date);
                              fire.setMediaURL(MediaURL);
                              fire.setTime(Time);
                              fire.setAddress(Address);
                              fire.setPosted(posted);
                              fire.setCount_Satisfied(count_satisfiedd);
                              fire.setCount_Dissatisfied(count_dissatisfied);
                              list.add(fire);
                          }
  
                      }
  
                      RecyclerAdapter recyclerAdapter = new RecyclerAdapter(list,getActivity());
                      RecyclerView.LayoutManager recyce = new GridLayoutManager(getActivity(),1);
                      recyclerView.setLayoutManager(recyce);
                      recyclerView.setItemAnimator( new DefaultItemAnimator());
                      recyclerView.setAdapter(recyclerAdapter);
  
  
                  }catch (Exception e){
  
  
                  }
  
              }
  
              @Override
              public void onCancelled(DatabaseError databaseError) {
  
              }
          });
  </code></pre>
  
  <p>And here is the database:</p>
  
  <pre><code>"complaints" : [ null, {
      "Address" : "Earth Street ",
      "CivicCategory" : "",",
      "ComplaintNo" : 1,
      "ComplaintType" : "",
      "Date" : "02 / 01 /2018",
      "Description" : ".",
      "MediaType" : "Image",
      "NearIn" : "Palengke ",
      "Posted" : true,
      "Time" : "11:42 AM"
    }, {
      "Address" : "Mars Street ",
      "CivicCategory" : " ",
      "ComplainantID" : "voter1",
      "ComplaintNo" : 2,
      "ComplaintType" : "",
      "Count_Resolved" : 0,
      "Count_Solved" : 0,
      "Date" : "01 / 03 /2018",
      "Description" : "
      "Posted" : true,
      "Time" : "11:43 AM"
    } ],
  </code></pre>
  
  <p>How could I get the expected result?</p>
  
  <p>Thank you for helping </p>