#!/bin/sh
gawk '{
split($0,f,":");
n=asort(f);
for (i=n; i>1; i--)
  printf %s", f[i] ":"
printf %s, f[1] "\n";
}