tutorial 17 - sorting and paging