NXP-13147: port fix of sort actions on ajaxified content views to the DAM layout listing template, factorizing common code using new templating zone