dglazkov / polymath

MIT License
132 stars 9 forks source link

Bug: when a chunk's properties change it might change the sort order #64

Open jkomoros opened 1 year ago

jkomoros commented 1 year ago

Noted while working on #61.

When a chunk's properties are changed, it might change the chunk's sort order in its parent. (For example, changing a chunk's similarity when the parent library is sorted according to similarity).

In practice this should be pretty rare but it's still a good idea to clean up that behavior.

The simplest thing is probably to remove the chunk and then reinsert itself when a property changes. With an optimization to only do that for specific sort types.