The problem here might be that... / #4823

milestones are sorted for name not Date. Otherwise there would be problems intermixing milestones with and without deadlines.

The best solution of this would be to use the order-id together with item id and drag and drop. But this would make the interface and implementation much more complex.

I couldn't reconstruct the fatal error.