Sort test result