I have a table that looks like this:
| Scenario| Date | System | Result |
| ------- | ------ | ------ | ------ |
| Proj1 | 07-01 | A | PASS |
| Proj1 | 07-01 | B | PASS |
| Proj1 | 07-01 | C | PASS |
| Proj1 | 07-01 | D | PASS |
| Proj1 | 07-02 | A | FAIL |
| Proj1 | 07-02 | B | FAIL |
| Proj1 | 07-02 | C | FAIL |
| Proj1 | 07-02 | D | FAIL |
| Proj2 | 07-01 | E | PASS |
| Proj2 | 07-01 | F | FAIL |
| Proj2 | 07-02 | E | PASS |
| Proj2 | 07-02 | F | PASS |
I rearranged it to this:
| Scenario| Date | System1 | System2 | System3 | System4| Overall|
| ------- | ---- | ------- | ------- | ------- | -------|--------|
| Proj1 | 07-01| A-PASS | B-PASS | C-PASS | D-PASS |PASS |
| Proj1 | 07-02| A-FAIL | B-FAIL | C-FAIL | D-FAIL |FAIL |
| Proj2 | 07-01| E-PASS | F-FAIL | | |FAIL |
| Proj2 | 07-02| E-PASS | F-PASS | | |PASS |
Right now, the order of the systems is alphabetical but I created a mapping table in which it orders the priority of the systems
|Scenario|System | Priority|
|------- |-------| --------|
|Proj1 |A | 2 |
|Proj1 |B | 3 |
|Proj1 |C | 1 |
|Proj1 |D | 4 |
|Proj2 |E | 1 |
|Proj2 |F | 2 |
Is there a way to adjust the order such that it reflects the priority and is as such:
| Scenario| Date | System1 | System2 | System3 | System4| Overall|
| ------- | ---- | ------- | ------- | ------- | -------|--------|
| Proj1 | 07-01| C-PASS | A-PASS | B-PASS | D-PASS |PASS |
| Proj1 | 07-02| C-FAIL | A-FAIL | B-FAIL | D-FAIL |FAIL |
| Proj2 | 07-01| E-PASS | F-FAIL | | |FAIL |
| Proj2 | 07-02| E-PASS | F-PASS | | |PASS |