Added the sort option, in this version it is sorted by date