Added pagination to pins index and ordered pins