So I grab a bunch of information from a few databases to get an array of values, their names and order being:
['type', 'baseid', 'lotid', 'split', 'sub', 'sequence', 'resourceid', 'user1', 'user2', 'part', 'department']
So I have an array of those, which I put into a tableview and I need to resort the array by the department value without changing any of the order of the internal array, so that in the table all assemblies are together, all GMBEAD BLASTs are together ect...
An example of the array with values looks like:
[[EDM, M, 887013393, C, 0, 2, 50, GE_1_INS], [QUALITY, M, 887013393, C, 0, 2, 60, GMDEBURR], [FINISH, M, 887013393, C, 0, 2, 70, GMBEAD BLAST]]
Yes I have tried a few .sort
or .sort_by
methods but with the numbers in the array it wont let me even run the program when I put in a sorting method.