diff --git a/httprunner/api.py b/httprunner/api.py
index <HASH>..<HASH> 100644
--- a/httprunner/api.py
+++ b/httprunner/api.py
@@ -131,7 +131,10 @@ class HttpRunner(object):
             logger.log_info("Start to run testcase: {}".format(testcase_name))
 
             result = self.unittest_runner.run(testcase)
-            tests_results.append((testcase, result))
+            if result.wasSuccessful():
+                tests_results.append((testcase, result))
+            else:
+                tests_results.insert(0, (testcase, result))
 
         return tests_results
refactor

refactor: rearrange the report, failed test cases will be displayed  at the head of the report.