implemented pagination with sorting