When using orderByChild() , data that contains the specified child key is ordered as follows: Children with a null value for the specified child key come first. Children with a value of false for the specified child key come next. If multiple children have a value of false , they are sorted lexicographically by key.