Cherry-pick from master: Fix summary ordering in runTrigCI.py
This is simply a cherry-pick of commit 01a6467b (part of !31228 (merged)) from master. It makes sure the result printing order is the same as test execution order for the summary display in CI tests.