Can someone help me figure out the code for grouping 2 columns together before sorting by columns?
example data:
where columns A & B need to be grouped together, C & D together, E & F together, etc...
When the sort is done it is only to sort by the name column (first column in each group of 2... A = Steve, C = John, E = Zeke... etc)
so before sort:
[TABLE="class: grid, width: 626"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"] A[/TD]
[TD="align: center"] B[/TD]
[TD="align: center"] C[/TD]
[TD="align: center"] D[/TD]
[TD="align: center"] E[/TD]
[TD="align: center"] F[/TD]
[TD="align: center"] G[/TD]
[TD="align: center"] H[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"] Steve[/TD]
[TD="align: center"]6/9/2010[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]1/1/2017[/TD]
[TD="align: center"]Zeke[/TD]
[TD="align: center"]5/5/2013[/TD]
[TD="align: center"]Adam[/TD]
[TD="align: center"]2/5/2008[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12/17/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/5/2013[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1/18/2012[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/4/2015[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]9/1/2010[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10/2/2016[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11/19/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5/27/2011[/TD]
[/TR]
</tbody>[/TABLE]
and after sorting and with grouping every 2 columns together:
[TABLE="class: grid, width: 626"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"] A[/TD]
[TD="align: center"] B[/TD]
[TD="align: center"] C[/TD]
[TD="align: center"] D[/TD]
[TD="align: center"] E[/TD]
[TD="align: center"] F[/TD]
[TD="align: center"] G[/TD]
[TD="align: center"] H[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"] Adam[/TD]
[TD="align: center"]2/5/2008[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]1/1/2017[/TD]
[TD="align: center"]Steve[/TD]
[TD="align: center"]6/9/2010[/TD]
[TD="align: center"]Zeke[/TD]
[TD="align: center"]5/5/2013[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/4/2015[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/5/2013[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12/17/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1/18/2012[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5/27/2011[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10/2/2016[/TD]
[TD="align: center"][/TD]
[TD="align: center"]9/1/2010[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11/19/2014[/TD]
[/TR]
</tbody>[/TABLE]
example data:
where columns A & B need to be grouped together, C & D together, E & F together, etc...
When the sort is done it is only to sort by the name column (first column in each group of 2... A = Steve, C = John, E = Zeke... etc)
so before sort:
[TABLE="class: grid, width: 626"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"] A[/TD]
[TD="align: center"] B[/TD]
[TD="align: center"] C[/TD]
[TD="align: center"] D[/TD]
[TD="align: center"] E[/TD]
[TD="align: center"] F[/TD]
[TD="align: center"] G[/TD]
[TD="align: center"] H[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"] Steve[/TD]
[TD="align: center"]6/9/2010[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]1/1/2017[/TD]
[TD="align: center"]Zeke[/TD]
[TD="align: center"]5/5/2013[/TD]
[TD="align: center"]Adam[/TD]
[TD="align: center"]2/5/2008[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12/17/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/5/2013[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1/18/2012[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/4/2015[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]9/1/2010[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10/2/2016[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11/19/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5/27/2011[/TD]
[/TR]
</tbody>[/TABLE]
and after sorting and with grouping every 2 columns together:
[TABLE="class: grid, width: 626"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"] A[/TD]
[TD="align: center"] B[/TD]
[TD="align: center"] C[/TD]
[TD="align: center"] D[/TD]
[TD="align: center"] E[/TD]
[TD="align: center"] F[/TD]
[TD="align: center"] G[/TD]
[TD="align: center"] H[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"] Adam[/TD]
[TD="align: center"]2/5/2008[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]1/1/2017[/TD]
[TD="align: center"]Steve[/TD]
[TD="align: center"]6/9/2010[/TD]
[TD="align: center"]Zeke[/TD]
[TD="align: center"]5/5/2013[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/4/2015[/TD]
[TD="align: center"][/TD]
[TD="align: center"]8/5/2013[/TD]
[TD="align: center"][/TD]
[TD="align: center"]12/17/2014[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1/18/2012[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5/27/2011[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10/2/2016[/TD]
[TD="align: center"][/TD]
[TD="align: center"]9/1/2010[/TD]
[TD="align: center"][/TD]
[TD="align: center"]11/19/2014[/TD]
[/TR]
</tbody>[/TABLE]