ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Add sortField option for special fields #80

Closed pauk-slon closed 8 years ago

pauk-slon commented 8 years ago

@ratiw, why not add sortField option to the special fields, like "simple" fileds have it? Especially it's important for the __component fileld, because this kind of field can contain any information about the item along with action controls.

ratiw commented 8 years ago

@pauk-slon That could be done, but I just can't think of any reason for that. I personally think that the __component field would be used for something more complex and it wouldn't make sense to do sorting on it. But if you have any particular use case, I would love to hear it. :)

pauk-slon commented 8 years ago

Okay :) My example is an editable field.

ratiw commented 8 years ago

@pauk-slon I see. That makes sense. :)

Will you be able to create a pull request for this? The template modification should be relatively easy to do, but it would be difficult for me to test since I don't use the editable field.

pauk-slon commented 8 years ago

@ratiw No problem, I'll do it :)

ratiw commented 8 years ago

Thanks, @pauk-slon