sort correlated dates to check from and to are in correct range
Merge branch 'feature/angular' into feature/visualisations