Fix sort bug where sort value was not being compared to as String.