timelines include end date into sorting

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