Calling all Query experts,
I'm sure this is a simple fix, but I am looking to sort a row by their Line # in the 2nd column, but maintain the original order in the 1st column.
Example below. Input is how my data on the table comes in and Output is what I am trying to achieve. Any help is appreciated.
Input
Col 1 - Col 2
def - 3
def - 1
def - 2
abc - 2
abc - 1
ghi - 1
Output
Col 1 - Col 2
def - 1
def - 2
def - 3
abc - 1
abc - 2
ghi - 1
I'm sure this is a simple fix, but I am looking to sort a row by their Line # in the 2nd column, but maintain the original order in the 1st column.
Example below. Input is how my data on the table comes in and Output is what I am trying to achieve. Any help is appreciated.
Input
Col 1 - Col 2
def - 3
def - 1
def - 2
abc - 2
abc - 1
ghi - 1
Output
Col 1 - Col 2
def - 1
def - 2
def - 3
abc - 1
abc - 2
ghi - 1