The attached article Show archive.org snapshot explains options you have to store the order of items in a database table.
The simplest solution of course is to use a position
column. However the author explores some alternatives where you don't need to update multiple rows when you move a single item.
Posted by Henning Koch to makandra dev (2018-03-21 14:46)