added sort results by date
fixed bug in summary after result sorting