started integrating sort and pagination