how items are sorted #1188
Labels
i-good-first-issue
This issue is probably a good starting point for people new to coding or the OED project.
p-low-priority
t-enhancement
This issues tracks a potential improvement to the software
Milestone
Is your feature request related to a problem? Please describe.
src/client/app/redux/api/unitsApi.ts sorts by ‘accent’ and other places that do localeCompare(). src/client/app/redux/selectors/uiSelectors.ts and other uses sortBy() without this. May be other places that sort that should be looked at.
Describe the solution you'd like
OED should be consistent. Determine what localeCompare might be adding and use as appropriate. One thought is to use a standard callback something like:
sortByIdentifier(entityA,entityB) => localeCompare(...)
Describe alternatives you've considered
The difference probably isn't too important so leave as is until fixed.
Additional context
None
The text was updated successfully, but these errors were encountered: