Sort data Firebase

0

I am trying to sort my search by date, however I have to search for a value and it is not allowed to use two orderByChild. I need to both find the name passed by the variable searchName and sort by date of birth. Could someone help?

referenciaFirebase.child("cliente").orderByChild("nome").equalTo(buscaNome).addValueEventListener(new ValueEventListener() {
            @Override
            public void onDataChange(DataSnapshot dataSnapshot) {

                for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {
                    final String nomeCliente = postSnapshot.child("nome").getValue(String.class);

                    final String data_nascimento = postSnapshot.child("data").getValue(String.class);

                }


            }

            @Override
            public void onCancelled(DatabaseError databaseError) {

            }
    
asked by anonymous 02.09.2018 / 23:53

0 answers