The task is as follows: There is a table with goods, let's say there are 1000 of them, 100 products are displayed on the page. I want to change their order and display NOT the 1st, 2nd, 3rd and so on on the first page. And let's say the 15th, 107th, 1st, 502nd, and so on. The question is how to keep their order in the database (priorities | order_by_id | still like that) with a large number of permutations and how to track these permutations?
iup to positionj, which means everything that was fromj+1toiinclusive should be increased 1. - teran