Last modified: 2012-07-03 21:45:13 UTC
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.
That was done when .data() didn't yet exists.
Maybe, the unit tests written at the time use data() though. Im fixing this now + unit test.
Fixed: * https://gerrit.wikimedia.org/r/14150 * Ie4f801c5b1f93617fd3fd173d2eaaf173a7604e9