timelines sort end

Implements [2581](https://www.openproject.org/work_packages/2581)