Layout fixes for pagination and sort together.