What's the best way to store sort order in SQL?
Posted
by Duracell
on Stack Overflow
See other posts from Stack Overflow
or by Duracell
Published on 2010-05-13T01:38:52Z
Indexed on
2010/05/13
18:24 UTC
Read the original article
Hit count: 367
The guys at the top want sort order to be customizable in our app. So I have a table that effectively defines the data type. What is the best way to store our sort order. If I just created a new column called 'Order' or something, every time I updated the order of one row I imagine I would have to update the order of every row to ensure posterity. Is there a better way to do it?
© Stack Overflow or respective owner