fixed bug when sorting/moving activities inside a day.
Origined in moveActivity in model.