Skip to content

Contacts sort order not working or only working with detailed name. #4985

@hjbex

Description

@hjbex

Describe the bug

Add a contact -> Type in name "John Shaft" -> Save -> Change settings "sort contacts by last name" -> Contact turns up as "John Shaft" not "Shaft, John".

Works properly only if "detailed name" is added to the contact.

I don't think it's a great idea to only have a single name field exposed in the UI in the first place.

But If you want to keep this at least make it work properly so that sort order adjustments do not "silently" fail! For example, add some intelligence so that it splits up things that you enter there into first and last name if it is only two words.

Also I have no clear mental mondel, as probably most users, what happens if that singular name field is different from the detailed name field.

Steps to reproduce

Add a contact -> Type in name "John Shaft" -> Save -> Change settings "sort contacts by last name" -> Contact turns up as "John Shaft" not "Shaft, John".

Expected behavior

Contact turns up properly sorted.

Actual behavior

No effect of sort order.

Contact version

8.1.2

Operating system

Linux

PHP engine version

None

Web server

None

Database

None

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions