finished news aggregator

  sorts news files chronological, newest first
  
added icon to jruby news
diff --git a/news/index.php b/news/index.php
index ab87dbe..e5119b7 100644
--- a/news/index.php
+++ b/news/index.php
@@ -4,12 +4,31 @@
 	$pageAuthor		= "Christian Pontesegger";
 
 	
+	# aggregate news
+	$dir = glob(getcwd() . '/*.news'); 
+	uasort($dir, function ($a, $b) { return filemtime($a) - filemtime($b);}); 
+
+	$news = '<dl class="news">';
+	foreach ($dir as $file) {
+		$xml = simplexml_load_file($file);
+		
+		$news .= '<dt><i class="fa fa-fw ' . $xml->icon[0] . ' bullet"></i>';
+		$news .= $xml->title[0];
+		$news .= '</dt>';
+		$news .= '<dd>' . $xml->content[0];
+		$news .= '<div class="date">' . date("Y/m/d", filemtime($file)) . '</div>';
+		$news .= '</dd>';
+	}
+	$news .= '</dl>';	
+	
 	# provide the page content
 	$html = <<<EOHTML
 
 <div id="midcolumn">
 	<h3><i class="fa fa-fw fa-bolt"></i> News</h3>
 
+	{$news}
+
 	<dl class="news">
 		<dt><i class="fa fa-fw fa-cogs bullet"></i>
 			Groovy engine preview
@@ -36,21 +55,6 @@
 				
 EOHTML;
 
-	$html .= '<dl class="news">';
-	
-	foreach (glob(getcwd() . '/*.news') as $file) {
-		$xml = simplexml_load_file($file);
-		
-		$html .= '<dt><i class="fa fa-fw ' . $xml->icon[0] . ' bullet"></i>';
-		$html .= $xml->title[0];
-		$html .= '</dt>';
-		$html .= '<dd>' . $xml->content[0];
-		$html .= '<div class="date">' . date("y/m/d", filemtime($file)) . '</div>';
-		$html .= '</dd>';
-	}
-
-	$html .= '</dl>';
-
 	# Generate the web page
 	$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
 ?>
diff --git a/news/jruby.news b/news/jruby.news
index 42768f1..27dd4b7 100644
--- a/news/jruby.news
+++ b/news/jruby.news
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <news>
 	<title>JRuby engine preview</title>
-	<icon>Der Teaser, eine kurze Beschreibung</icon>
+	<icon>fa-cogs</icon>
 	<content>Implemented draft of a Groovy engine. You may find the update site location in the &lt;a href=&quot;/ease/download&quot;&gt;download section&lt;/a&gt;.</content>
 </news>
\ No newline at end of file