tag: fix --sort tests to use cat<<-\EOF format