spatie / vue-table-component

A straight to the point Vue component to display tables
http://vue-table-component.spatie.be
MIT License
588 stars 149 forks source link

Be able to set descending as initial sort order on table header click #162

Closed rudden closed 6 years ago

rudden commented 6 years ago

Hey!

Great component. I'm currently using this in my web application (will try to send a postcard from Stockholm!).

I haven't yet found the courage to do my first pull request, so I'll just try my best to describe what I'm looking for:

The only thing I've not yet been able to solve is that I'd like to be able to modify the initial sort order set when sorting on a specific column. I had quite a large data set with a not of numeric values and my users would like the data to initially be sorted in a descending order when they click to sort on a specific column. I'm using the latest version installed via npm and from what I can see (I'm quite a noob) it has to do with the initial sort order being set to 'asc' on line 284 in file TableComponent.vue (changeSorting method).

I hope this made sense!

BR Simon

spatie-bot commented 6 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.