Awk sort column1 elements and append its column 2 elemnts

The first suggestion is that you follow forum rules and correct your spelling errors.

The second suggestion is to follow the rules (again) and the moderator's request that you segment your code using Markdown.

Did you read our rules which you agreed to when you joined our great community?

These rules are not optional, they are mandatory:

To learn more about Markdown, check out this link: