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

Use localized compare to sort autofill items #674

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented Aug 8, 2022

Task/Issue URL: https://app.asana.com/0/0/1202723762657601/f

Description:
Use localizedCaseInsensitiveCompare instead of generic string comparison.

Steps to test this PR:

  1. Add items containing non-ASCII characters to Autofill
  2. Verify that ą comes after a and before b, etc.
  3. Use Reversed Alphabetical sorting and verify that ą comes after b and before a, etc.

Testing checklist:

  • Test with Release configuration

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@samsymons samsymons self-assigned this Aug 8, 2022
Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

👍

@samsymons samsymons assigned ayoy and unassigned samsymons Aug 8, 2022
@ayoy ayoy merged commit 2ad97a5 into develop Aug 8, 2022
@ayoy ayoy deleted the dominik/autofill-sorting branch August 8, 2022 21:34
samsymons added a commit that referenced this pull request Aug 18, 2022
# By Sam Symons (14) and others
# Via GitHub (1) and others
* develop: (45 commits)
  Revert "Prevent the app from quitting while the Fire button is active" (#690)
  Disable link preview. (#691)
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
  Use localized compare to sort autofill items (#674)
  0.28.1
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
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