Description
When we sort issues by "Nearest due date" or "Farthest due date", only issues due dates are taken into account.
I think it would be nice to take the milestone due date into account.
Maybe it could be implemented in the following way : when the milestone due date is further than the issue due date, the later is taken into account, and if the milestone due date is nearer, then the milestone is taken into account for sorting.
I've tried an implementation in this commit : koalp@126d3ca and can make a PR if this issue is accepted.
My use case: when I'm looking for the next issue to work on, I go in the issue tab, look at assigned issues and sort by "Nearest due date". But when due dates have been set using milestones, I don't see them and have to look in each milestone manually.