BEGIN{ a["third"]="Jones" a["second"]="X" a["first"]="Smith" asorti(a) for (i in a) printf "%s %s\n",i,a[i] }