nextcloud / nextcloud/contacts

Nextcloud Contacts groups are not sorted properly

Open
#3,057 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: contacts
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

Describe the bug

Groups with UTF8 characters in names are sorted in bad order, characters with diacritics are at the end (see SOkA Písek, SOkA České Budějovice on the picture):
contacts
Right order of groups:
SOA v Třeboni
SOA v Třeboni - odd....
SOkA České Budějovice (Č sorted as C!)
SOkA Český Krumlov (Č sorted as C!)
SOkA Jindřichův Hradec
SOkA Písek (í sorted as i!)
SOkA Prachatice
SOkA Strakonice
SOkA Tábor

Steps to reproduce

Try to add these groups and see displayed order:
SOkA České Budějovice
SOkA Český Krumlov
SOkA Jindřichův Hradec
SOkA Písek
SOkA Prachatice
SOkA Strakonice

Expected behavior

Sort group names with UTF-8 characters correctly

Actual behavior

Now are the names of groups sorted in bad order, maybe latin1 and not UTF-8?

Contact version

4.2.2

Operating system

CentOS 7

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database

PostgreSQL

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Contacts 4.2.2 behavior with the Czech group names listed in the issue, then trace where the displayed group ordering is produced. Confirm the sorting behavior with UTF-8 names and compare it with the expected order; done means names with diacritics are ordered alongside their base characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.