added in-browser sorting, small fix in getArticles