http://qs321.pair.com?node_id=11101353


in reply to Re: Sort alphabetically from file
in thread Sort alphabetically from file

Thanks man but for some reason not working - I'm using a .txt file as input to sort BT<W print sort { ($a =~ /\S+\n$/g)[0] cmp ($b =~ /\S+\n$/g)[0] } file.txt not sure if I'm using it correctly