K
K
kostya17042021-12-17 16:58:59
AJAX
kostya1704, 2021-12-17 16:58:59

How to sort the results of a GET request?

After filtering products by parameters, there is, for example, a similar query

: on

We got the result, some number of goods, now the essence is: how to sort this result for the user by price up - down, or by capacity more - less, well, by some parameters of the product?

With an ajax sorting request, the result obtained above is overwritten, all goods are sorted.
How to store the result of a GET request for primary filtering?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question