added sorting a pagination for issue