VID-1524 Pass in correct value for sort key