Split the file /etc/passwd by the delimiter ':' and take the second and fifth fields. Replace the delimiter ':' with a tab character and sort the output by the second field.
cut -d: -f 2,5 /etc/passwd | tr ':' '\t' | sort -k 2,2