Study of the ordering of octahedral intercalates in transition metal dichalcogenides