Currently all snippets are added after any files.
The easiest solution is probably to add an additional property to each snippet's configuration, and then JsCollectionRendererDecorator::render() could prepend the relevant items to the array of elements from core's JsCollectionRenderer.
Comments
Comment #2
gappleThe correct place to do this would be
JsCollectionRendererDecorator.AssetResolverDecoratoris able to group and order items, butJsCollectionRendererDecoratorcurrently places all inline elements after the files rendered from core, even if they were ordered before files in the array it receives.