From 8908b79f2a26e041ff04a88156c66f7564152d57 Mon Sep 17 00:00:00 2001 From: Aleksandr Bogdanov Date: Sun, 15 Mar 2015 11:47:51 +0100 Subject: [PATCH] Sorting the resources by name to work around CSS ordering issues --- src/Resume/Command/HtmlCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Resume/Command/HtmlCommand.php b/src/Resume/Command/HtmlCommand.php index 7af2d48..917e9b9 100644 --- a/src/Resume/Command/HtmlCommand.php +++ b/src/Resume/Command/HtmlCommand.php @@ -102,6 +102,10 @@ class HtmlCommand extends Command array_push($assets, new FileAsset($fileInfo->getPathname())); } + usort($assets, function(FileAsset $a, FileAsset $b){ + return strcmp($a->getSourcePath(), $b->getSourcePath()); + }); + $collection = new AssetCollection( $assets );