HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

Sorting and Snake Case Headers #343

Open pixelated-au opened 10 months ago

pixelated-au commented 10 months ago

I encountered an issue where my column heading value was named with snake case, not camel case. eg

[{ text: "TEST", value: "my_test_field", sortable: true},...] // <- Note the value

When I replaced the value with camel case, everything worked as expected.

[{ text: "TEST", value: "myTestField", sortable: true},...]

I believe this is a bug because the headings actually work with snake case. It just doesn't sort. My recommendation is to either disallow snake case (ie throw an error) or support snake.