mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Sorting the resources by name to work around CSS ordering issues
This commit is contained in:
parent
d77284f7a6
commit
8908b79f2a
@ -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
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user