### Apache Airflow version

Other Airflow 2 version (please specify below)

### What happened

Hi, I'm currently on Airflow 2.4.2
In /home when sorting by DAG/Owner/Next Run and going to the next page the sort resets.
This feature only works if  I'm looking for last or first, everything in the middle is unreachable.

### What you think should happen instead

The sorting should continue over the pagination

### How to reproduce

Sort by any sortable field on DagList and go to the next page

### Operating System

apache/airflow:2.4.2-python3.10

### Versions of Apache Airflow Providers

_No response_

### Deployment

Official Apache Airflow Helm Chart

### Deployment details

_No response_

### Anything else

_No response_

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

self.check_generate_pages_html(current_page=0, total_pages=6)
    def test_generate_pager_current_middle(self):
        self.check_generate_pages_html(current_page=10, total_pages=20, check_middle=True)
    def test_generate_pager_current_end(self):
        self.check_generate_pages_html(current_page=38, total_pages=39)
    def test_params_no_values(self):
        """Should return an empty string if no params are passed"""
        assert "" == utils.get_params()
    def test_params_search(self):
        assert "search=bash_" == utils.get_params(search="bash_")
    def test_params_none_and_zero(self):
        query_str = utils.get_params(a=0, b=None, c="true")
        
        pairs = list(sorted(query_str.split("&")))
        assert ["a=0", "c=true"] == pairs
    def test_params_all(self):
        query = utils.get_params(tags=["tag1", "tag2"], status="active", page=3, search="bash_")
        assert {
            "tags": ["tag1", "tag2"],
            "page": ["3"],
            "search": ["bash_"],
            "status": ["active"],
        } == parse_qs(query)
    def test_params_escape(self):