to sort alphabet of string