change default sort direction and for pagination