Transform template variables into a sortable multi item list for the MODX Evolution content management framework