Sort names and separate by spaces