I am generating the .txt file from beanshell scripting. Now I am having problem for sorting. If anyone can give any idea that will be great help. The file looks like:
UserId FirstName LastName Status roleId
2025 A B Active 3
2021 C D InActive 2
2036 E F Active 1
3012 G H Active 2
5012 I J InActive 1
Sorting should be done by while writing file by Status
in ascending order, then by roleId
in ascending order, then by UserId
in ascending order.