Java nosql sort

DatabaseReference users = FirebaseDatabase.getInstance().getReference("users");

users.orderByChild("value").limitToFirst(10).addListenerForSingleValueEvent(new ValueEventListener() {
}
Change The Mentality