Sorting products by popularity on the category screen

Designed to sort the list of provided products from one category by popularity.
🚧 The algorithm always returns the products that were transferred to it. If there are no recommendations, the result will be the original sequence
🚧 The algorithm does not take into account the availability of products

📘

Link

link consists of a name and a value, in the query string the name and value are separated by a comma, example: link=card,12345, where card is the name and 12345 is the value.

Language
Click Try It! to start a request and see the response here!