Skip to content

Conversation

@asiloisad
Copy link
Contributor

The sorting methods of getEntries and sortEntries have used a different approach. Now:

  • They use the same approach,
  • Intl.Collator is created once instead of every getEntries call.
  • normalizeEntryName is simplified.

}
return normalizedValue
normalizeEntryName(value) {
return value.name ? value.name : value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not need to convert to lowercase? Does Intl.Collator take care of that for us?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

2 participants