Refactoring: separate method for reordering of popular articles for array of specific links