Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case-insensitive sorting of references #1396

Closed
mattgarrish opened this issue Oct 18, 2017 · 3 comments
Closed

case-insensitive sorting of references #1396

mattgarrish opened this issue Oct 18, 2017 · 3 comments

Comments

@mattgarrish
Copy link
Member

I've noticed that spec references that begin with a capital letter sort before those with a lowercase letter.

In general this is not a problem as we've tried to use lowercase references in the Web Pub spec, but if you look at the normative section, RFC2119 appears first because it is auto-inserted.

Ideally it would be nice if sorting was case-insensitive.

@marcoscaceres
Copy link
Member

So, we probably want:

refs.sort((a,b) => a.toLowerCase().localeCompare(b.toLowerCase());

here:
https://github.com/w3c/respec/blob/develop/src/core/biblio.js#L147

@marcoscaceres
Copy link
Member

I’ll try to do a release later today or tomorrow.

marcoscaceres added a commit that referenced this issue Oct 19, 2017
* develop:
  v17.1.0
  fix(core/issues-notes): only spans are inline
  refactor(issue-notes-spec): dont need to show document
  tests(biblio-spec): sort refs as lowercase
  feat(biblio): sort refs case insensitive (closes #1396)
  chore(package): update webidl2 to version 5.0.0
  tests(headers-spec): fixes and optimizations
  fix(w3c/headers): dont overridde recNoExpected if present
  chore(package): update deps
  feat(templates/sotd.html): link to 2017 patent policy
  chore(CHANGELOG): regenerate
@mattgarrish
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants