Fear not! There's a tool to fix the sort name value.
  1. Go to Tools > System Utilities > Admin Utilities > Profile Utilities > Rebuild Alpha Sort Field. 
  2. Enter the Profile ID you are working on in both the From and the To fields and click OK. 
  3. A Report will pop up listing the tables where it has been updated.
Check your Gift History again. You should be good to go!