[Solved] How to implement 2 level sort in a csv file using Java [closed]
When it’s only a small file you could solve it like this read all lines into a list implement your own Comparator sort the list using your own comparator The example is only a PoC. Anything not necessary to show the principle has been omitted. import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; … Read more