|
|
|
|
|
by loumf
381 days ago
|
|
Here is the answer for Trello: each card and list has a field called “pos” which is a number. The initial values are spread out (e.g. 1000, 2000, 3000) and then when you move a card, it takes on the average of the two adjacent cards. So, if I move the 3rd card to the 2nd position, its “pos” becomes 1500. This means it doesn’t have to constantly renumber the cards -- but, every once and a while, the server does reorder the “pos” fields for a whole list and send the new values down the socket. |
|