added code for sorting article