[Bug Report][3.5.2] VDataTable
sort
should use the value
of the column
#19159
Labels
duplicate
The issue has already been reported
Environment
Vuetify Version: 3.5.2
Vue Version: 3.4.15
Browsers: Chrome 121.0.0.0
OS: Mac OS 10.15.7
Steps to reproduce
Click a column to sort by, you will see the value used by
sort
.Expected Behavior
sort
should use the computedvalue
of a column ifvalue
is a function.Actual Behavior
sort
receivesitem[key]
instead, which is eitherundefined
or the wrong value.Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
As a workaround I’m forced to extract the value functions into a map,
so I can reuse them in my reimplementation of sort (using the newly added
sortRaw
):What I would like to be able to do is define the
value
of each column once and have the default implementation ofsort
use that value instead ofitem[key]
.The text was updated successfully, but these errors were encountered: