added sorting and pagination to phrases and translations