add nice urls for sorting; fix pagination with sorting