Added in a function that sorts the articles by their created date