Answer the question
In order to leave comments, you need to log in
How to sort projects by year of their development??
The site has a section "Projects" ( https://uzeng.uz/ru/projects/). Each project has a "Project Development Year". So, how to make it so that when a user enters the "Projects" section, his projects are displayed by the "Year of project implementation" 2019 then 2018, 2017, 2016, etc. (i.e. first new projects, then old ones.)
Answer the question
In order to leave comments, you need to log in
The easiest way is to create sections, display sections for the component, and shove your own project into each code.
By the way, the site does not open.
If year is a property then sort by property and desc
$sortField = 'property_КОДСВОЙСТВА';
$sortOrder = 'desc';
"ELEMENT_SORT_FIELD" => $sortField,
"ELEMENT_SORT_ORDER" => $sortOrder,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question