Added -g option to sort.