refactored article views function in index to properly sort by date_created (desc)