added string sorting