Skip to content
Advertisement

Vuetify Table sortable column is not working

enter image description here

I have these vuetify table, this is how I configure the header

JavaScript

JavaScript

As you can see I have sortable: true for Link Count column.

Some how it is not working…

How can I debug this further ?

Advertisement

Answer

By default, <v-data-table> comes with a sortable functionality for all the columns. By your question what I understood if that by default you want count column sorted in ascending/descending order when grid loads.

If Yes, You can achieve that by using external-sorting feature of data grid.

Working demo :

JavaScript
JavaScript

Please let me know if my understanding is not correct or any further changes required as per the requirement.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement