-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product
Description
Existing documentation URL(s)
What changes are you suggesting?
Currently the list is being sorted by the file order rather than by the enable/sort date. This makes it hard to work out when new flags are added and what changes need to be accounted for when updating a worker compat date.
The docs also state that they should be sorted in ascending order and they previously used to match this statement but unsure when that broke.
Additional information
Happy to raise a PR but if its easier for someone internal I found that adding
flags.sort((a,b) => new Date(a.data.sort_date) - new Date(b.data.sort_date)).reverse();
to CompatibilityFlags.astro fixed the issue.
Metadata
Metadata
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:workersRelated to Workers productRelated to Workers product