Fixed wrong ordering of custom CSS/JS assets

This commit is contained in:
Matias Griese
2017-01-17 13:26:09 +02:00
parent aa3d8dd8e5
commit 22e85eeb8a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@
1. [Common](#common)
1. [](#bugfix)
- Fixed a bug in `|html` filter
- Fixed wrong ordering of custom CSS/JS assets
2. [Joomla](#joomla)
3. [](#bugfix)
- Fixed all `<script>` tags being corrupted in Windows due to badly behaving `uniqid()` function
@@ -408,7 +408,7 @@ class HtmlBlock extends ContentBlock implements HtmlBlockInterface
uasort(
$items,
function ($a, $b) {
return ($a[':priority'] == $b[':priority']) ? $a[':order'] - $b[':order'] : $a[':priority'] - $b[':priority'];
return ($a[':priority'] == $b[':priority']) ? $a[':order'] - $b[':order'] : $b[':priority'] - $a[':priority'];
}
);
}