diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php
index 4a894e40..de7fc538 100644
--- a/themes/default/layout.class.php
+++ b/themes/default/layout.class.php
@@ -14,6 +14,7 @@ class Layout {
 		$contact_link = $config->get_string('contact_link');
 
 		$header_html = "";
+		ksort($page->headers);
 		foreach($page->headers as $line) {
 			$header_html .= "\t\t$line\n";
 		}