If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
=CONCAT(distinct Year, ' |' )
Use the third argument (sort-weight) to sort.
I have tried but get it to order by descending year. Not sure I understand sort-weight.
=CONCAT(distinct Year, ' |' ,-Year)