Fixed #23992 -- Optimized reorder_suite functions using OrderedSet
Merge pull request #3730 from tchaumeny/test_suite_reorder

Fixed #23992 -- Optimized reorder_suite functions using OrderedSet