We have a requirement to retreive books in a user defined order (e.g. Assuming there are 3 books - BookA, BookB, BookC), its possible that an end user would like to see this rendered as (BookB, BookA, BookC) or (BookC, BookA, BookB).
We are thinking of adding a integer column (e.g. sortColumn) to capture this order. Is this a good option, if the list of items is going to be huge?
If we go with the above approach, what is the best way to re-calculate the sort order post ordering as it might involve updating multiple records every time a book is either moved up or down.
Assuming there are 1000 books, how do you decide on the 'sortColumn' value for a new book which is being added.