When changing the day order of a task chunk to that of another existing task chunk of that day, the day order of the existing chunk is set to the old day order of the updated chunk.
When changing the day order without changing the day, this is the expected behaviour; however, when changing the day as well, the day order chosen for exchange gets the day order the task chunk had at its previous day. This can lead to inconsistencies (i.e., multiple identical day orders within a single day).
Instead, when changing the of a task chunk and providing a day order, the day order should be ignored if the day is also updated.
When changing the day order of a task chunk to that of another existing task chunk of that day, the day order of the existing chunk is set to the old day order of the updated chunk. When changing the day order without changing the day, this is the expected behaviour; however, when changing the day as well, the day order chosen for exchange gets the day order the task chunk had at its previous day. This can lead to inconsistencies (i.e., multiple identical day orders within a single day).
Instead, when changing the of a task chunk and providing a day order, the day order should be ignored if the day is also updated.