'ReorderableListView and SQLite

I keep a list of my favorite books in Drift/Moor(SQLite). The table contains 2 columns: bookID & index I use the ReorderableListView.builder() widget to display them and can sort them. How do I correctly make changes to the sorting performed in the database?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source