The data-sort-value attribute is used to pre-populate the data storage, but later modifications are only stored in the properties, not in the attributes.
Calling .data() will do the same as .attr(), except that .data() will be up to date if the value has changed.
Discovered when implementing bug 24950.
Version: 1.17.x
Severity: normal