Skip to main content

New answers tagged

3 votes
Accepted

How to design user-defined ordering of items?

Usually having an integer field and adding sort-by to your queries is sufficient. Gaps don't matter to sorting algorithms. Start with the integer values spaced out by half the range, so your first ...
Pete Kirkham's user avatar
  • 1,945
2 votes

How to design user-defined ordering of items?

In one application we used a 20 character string which was alphabetically sorted. If a string was moved manually we took the strings for the two new neighbours and changed the order of the moved ...
gnasher729's user avatar

Top 50 recent answers are included