diff --git a/excuse.py b/excuse.py
index f5021d8..52178f5 100644
--- a/excuse.py
+++ b/excuse.py
@@ -133,7 +133,7 @@ class Excuse:
(self.daysold, self.mindays))
for x in self.htmlline:
res = res + "
" + x + "\n"
- for x in self.deps:
+ for x in sorted(self.deps):
if x in self.invalid_deps:
res = res + "