q-table column sorting go back to first page



  • Hello,

    is it the expected behaviour that q-table column sorting go back to the first page when in second page or more?

    If so, any chance to make it sorting in the current page?

    Thanks



  • @nulele

    The sorting will sort the entire table not just the current page. That’s the expected/desired behavior in 99% of the cases.

    Let’s say you are on the second page of a sortable table with a price column. You then sort the price column to have the least expensive rows on top. If you would stay on the second page you will not see the items(rows) with the lowest price, but you would see the second page of the lowest price items(rows).

    You could implement your own sorting:
    https://quasar.dev/vue-components/table#Custom-sorting


Log in to reply