I am trying to import an excel document, add and delete some records and then sort the records by there columns before exporting it back to excel. In total there are 20 columns that are import/exported.
I created arraylists to capture the columns information. After processing them I am trying to sort them.
static List<String> rA_column = new ArrayList<String> ();
static List<String> rB_column = new ArrayList<String> ();
static List<String> rC_column = new ArrayList<String> ();
How can I sort them by rC_column first and then rA_column, but still maintain all the records together without accidentally mixing up cells causing the records information to be inaccurate?
I do not understand how I could use map or collect sort for this to work because its limiting me to two strings in map and I have 20 arraylists to keep in sync.