Fix broken member sorting