sort by createdOn fix