private function sortChildren(DocumentSchema $childA, DocumentSchema $childB)
    {
        return count($childA->getReflection()->getSchema()) > count($childB->getReflection()->getSchema());
    }
private function sortChildren(DocumentSchema $childA, DocumentSchema $childB)
    {
        return count($childA->getReflection()->getSchema()) > count($childB->getReflection()->getSchema());
    }
private function sortChildren ( DocumentSchema $ childA , DocumentSchema $ childB ) { return count ( $ childA -> getReflection ( ) -> getSchema ( ) ) > count ( $ childB -> getReflection ( ) -> getSchema ( ) ) ; }
Sort child documents in order or declared fields.

@param DocumentSchema $childA
@param DocumentSchema $childB

@return int
Sort child documents in order or declared fields .