Some of you have, in the past, very helpfully provided me with guidance, and indeed scripts for sorting data from ‘/’ separated strings into individual entries and also sorting and removing duplicates from these strings. This works fine for my ‘Type’ data which can happily be sorted alphabetically. Unfortunately, the same cannot be said for my ‘Period’ data, which needs to be in date order. Unfortunately, again, it’s not actual dates, which could be sorted numerically, but rather periods written as text e.g. Roman, Iron Age, Medieval.
I tried to rename the data, adding a number at the beginning, but I hit a snag in that there are entries with duplicate words e.g. MEDIEVAL, POST MEDIEVAL, IRON AGE, EARLY IRON AGE etc and it’s tricky to edit the string for MEDIEVAL, without also editing POST MEDIEVAL; instead you have to edit everything MEDIEVAL, then all the POST or other MEDIEVALs, which is a hassle.
I’m wondering whether there is a way of using some sort of predefined list to create the order?
Thanks