Remove duplicate allow_muc and sort