Needs review
Project:
Drupal core
Version:
main
Component:
asset library system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2026 at 17:21 UTC
Updated:
27 Nov 2026 at 21:06 UTC
Jump to comment: Most recent
Comments
Comment #3
catchComment #4
alexpottThis looks much easier to commit to 11.5.x - nice.
So I'm concerned that we're still going to respect any weights set in the alter functions because of how we call the alters before we call the sort...
Eg.
If we really want to completely disable sorting by weight I think we need to update \Drupal\Core\Asset\AssetResolver::sort() to determine the CSS category based sorting and completely remove the weight sorting from it.