I have a file like this:
FirstName, FamilyName, Address, PhoneNumber
How can I sort it by FamilyName?
To sort by second field only (thus where second fields match, those lines with matches remain in the order they are in the original without sorting on other fields) :
sort -k 2,2 -s orig_file > sorted_file