8000 Sorting on strings is not consistent · Issue #7362 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Sorting on strings is not consistent #7362
Closed
@leemaguire

Description

@leemaguire

Expected results

The behaviour of sorting a primitive list of strings and a list of objects by a string property type should be the same.

Actual Results

Sequence from sorting objects on a string property from a top level object:

AihngsPumyLMy
APEl741s
eD39VjHZWC8HAlsnMZTNTc6vAfVF
Jw8JGmnNDFqQ2KLReb2QX2pAq3zEu
lkkKZWVrZZKJUFShPayIBGcfR3qrovi

Sequence from sorting a primitive list of strings:

APEl741s
AihngsPumyLMy
Jw8JGmnNDFqQ2KLReb2QX2pAq3zEu
eD39VjHZWC8HAlsnMZTNTc6vAfVF
lkkKZWVrZZKJUFShPayIBGcfR3qrovi

When sorting by the list of strings, the case of the string is taken into account.

Steps & Code to Reproduce

For this set of strings:

AihngsPumyLMy
APEl741s
eD39VjHZWC8HAlsnMZTNTc6vAfVF
Jw8JGmnNDFqQ2KLReb2QX2pAq3zEu
lkkKZWVrZZKJUFShPayIBGcfR3qrovi

Create a top level object for each string and then useResults to sort ascending on the string property.

Create a separate top level object with a primitive list property, append each string to the list and then sort ascending.

Core version

Core version: 13.26.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0