Fix sorting link on list templates