MDL-36872 reports: Fixing incorrect sorting of recent activites by timestamp
MDL-38564 Adding unit tests for the functions compare_activities_by_time_asc() and compare_activities_by_time_desc()