Results sorted on basis of their dates

Made necessary changes