Sorting Data in Firebase
I'm using Firebase listview at its shown below and its working like a charm but the problem is it displays the last pushed key in the child("Posts") at the end of my listview(lv) I want the last pushed key to be displayed above all or if i can sort it by date. query = ref.child("Posts").orderByKey(); FirebaseListAdapter<ChatRoomJ> adapter = new FirebaseListAdapter<ChatRoomJ>( ChatRoom.this, ChatRoomJ.class, R.layout.lvchatroom,query ) { @Override protected void populateView(View v, ChatRoomJ model, final int position) { final String date = model.getDate(); final String displayName = model