Sorting the resources by name to work around CSS ordering issues

This commit is contained in:
Aleksandr Bogdanov 2015-03-15 11:47:51 +01:00
parent d77284f7a6
commit 8908b79f2a

View File

@ -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
);