File has below elements
Name1 Name2 Name3 Name4 Name5
rahul receiver1 30 20 50
ramesh receiver2 30 20 50
rajesh receiver3 30 20 50
Vidya receiver1 30 20 50
Reshma receiver2 30 20 50
rahul_1 receiver3 30 20 50
rahul_2 receiver1 30 20 50
rahul_6 receiver2 30 20 50
rahul_7 receiver3 30 20 50
rahul_8 receiver4 30 20 50
Output I want is below ... I want name2 filed same elements line together ..like who is holding reciever1 should come first
Name1 Name2 Name3 Name4 Name5
rahul receiver1 30 20 50
Vidya receiver1 30 20 50
rahul_2 receiver1 30 20 50
ramesh receiver2 30 20 50
Reshma receiver2 30 20 50
rahul_6 receiver2 30 20 50
rajesh receiver3 30 20 50
rahul_1 receiver3 30 20 50
rahul_7 receiver3 30 20 50
rahul_8 receiver4 30 20 50
Name1 Name2 Name3 Name4 Name5
rahul receiver1 30 20 50
ramesh receiver2 30 20 50
rajesh receiver3 30 20 50
Vidya receiver1 30 20 50
Reshma receiver2 30 20 50
rahul_1 receiver3 30 20 50
rahul_2 receiver1 30 20 50
rahul_6 receiver2 30 20 50
rahul_7 receiver3 30 20 50
rahul_8 receiver4 30 20 50
Output I want is below ... I want name2 filed same elements line together ..like who is holding reciever1 should come first
Name1 Name2 Name3 Name4 Name5
rahul receiver1 30 20 50
Vidya receiver1 30 20 50
rahul_2 receiver1 30 20 50
ramesh receiver2 30 20 50
Reshma receiver2 30 20 50
rahul_6 receiver2 30 20 50
rajesh receiver3 30 20 50
rahul_1 receiver3 30 20 50
rahul_7 receiver3 30 20 50
rahul_8 receiver4 30 20 50