Metadata Schema - Hierarchy - Rearranging Keys


#1

GDay,
I have been working with Hierarchy metatadata, and the client has asked for a new section/sub section to be added. I have inserted these, but now the Option Key and Option Value are rather messy & can see this as a potential issue for future changes.

Is there a way to auto-sort the schema keys and values back into their correct hierarchy order?

See attached example below:

example

Thank you.


(John gill) #2

Easiest thing I can think of is to

  1. export the Select Field options as CSV
  2. sort that file in your friendly neighbourhood text editor or command line
  3. upload the sorted CSV as the new options.

image

Second easiest option would be a bookmarklet with some JavaScript to sort the field values in the browser. It would need to be a very common task to make that worthwhile though.