Merge branch 'resource-ordering'

This commit is contained in:
Aleksandr Bogdanov 2015-03-15 12:21:21 +01:00
commit 5736f432be

View File

@ -102,6 +102,10 @@ class HtmlCommand extends Command
array_push($assets, new FileAsset($fileInfo->getPathname())); array_push($assets, new FileAsset($fileInfo->getPathname()));
} }
usort($assets, function(FileAsset $a, FileAsset $b){
return strcmp($a->getSourcePath(), $b->getSourcePath());
});
$collection = new AssetCollection( $collection = new AssetCollection(
$assets $assets
); );