fixing string sorting examples