LeaVerou / css3test

How does your browser score for its CSS3 support?
http://css3test.com
MIT License
214 stars 83 forks source link

Sort module name by alphabetical order #196

Closed Zefling closed 4 years ago

Zefling commented 4 years ago

There are a lot of CSS modules and it becomes complicated to navigate. By alphabetical order would be better better.

LeaVerou commented 4 years ago

Fine by me!

PolariTOON commented 4 years ago

Do you mean sorted by key (css-sizing-3) or by title ("Intrinsic & Extrinsic Sizing Level 3")?

Sorting modules by key seems to be more convenient for maintainers and contributors while sorting by title is maybe more practical for users.

In the first case, i saw that the names of the keys are currently a bit inconsistent. For example, currently the key css3-background does not match the link to the spec (css-backgrounds-3 / css-backgrounds). So i think keys should be normalized before that (css3-background -> css-backgrounds-3 for example).

Can i try to submit a PR?

LeaVerou commented 4 years ago

By title is more convenient for end users though, as the shortname is not immediately visible, so it will appear like a nonsensical sorting. Also, most shortnames start with css-.

PolariTOON commented 4 years ago

Should the display order reflect the order in the code?

If not, sorting specs by title could be done at runtime with Array#sort without having to move them in the code.

Zefling commented 4 years ago

I think this issue is complete.

LeaVerou commented 4 years ago

Great, thank you all!