Sorting contents of a field

Field ‘reference’ has several values — KingGeorge [[Prince Harry]] Queen Mary.

When I complete editing by clicking on ‘Done’ button, I want to sort the contents of this field so that they appear as: KingGeorge Mary [[Prince Harry]] Queen

<$list filter="[enlist{!!reference}sort[]]">

will get the list of values properly sorted.

What do I need to do to store these back in the field ‘reference’?

I understand your question, but why do you need to store them back in the field alphabetically sorted? Can’t you just add a sort operator to the filter expression whenever you view the field, as you’ve just shown?

@sull-vitsy Thanks! That is so elegant! Worked perfectly.

You can also use ## list-links-draggable Macro
to manually drag and drop the order as you can inside tag pills.