When sorting keys of object of objects by properties of the inner objects, use key names when property values are missing