diff --git a/site/blog/index.php b/site/blog/index.php index 3ed6f9e..3f9050b 100644 --- a/site/blog/index.php +++ b/site/blog/index.php @@ -24,12 +24,7 @@ $xml = simplexml_load_file($feed); // Get all items as an array $items = iterator_to_array($xml->channel->item); -// Sort the items by pubDate -usort($items, function($a, $b) { -return strcmp($a->pubDate, $b->pubDate); -}); - -// Loop through the sorted items and display them +// Loop through the items and display them foreach ($items as $item) { // Add a box around the article echo '