[PATCH PM-QA v2 22/25] Test: Add sort function