Sort strings based on locale

Old sort was putting lowercase after uppercase, instead of intermixed.