project sorting in timelines

Implements [1961](https://www.openproject.org/issues/1961)