Skip to content

Fix sorting of files/folders with special characters in the beginning #2085

@alexanderdd

Description

@alexanderdd
 * Nemo version (nemo --version) 4.0.6
 * Is issue with desktop or windowed nemo? windowed
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...) Linux Mint 19.1 Cinnamon
 * Graphics hardware *and* driver used
 * 32 or 64 bit: 64bit

Issue
Special characters in the beginning of folder names and files are ignored for sorting.

Steps to reproduce
When sorting the following folders alphabetically, the "_" in the beginning is ignored and the next character is used for sorting:
Aaron
Peter
_Sandra

Expected behaviour
When sorting the following folders alphabetically, the one with the "_" in the beginning is first.
_Sandra
Aaron
Peter

Other information
The only situation where I can think of the current behavior as good is if somebody put the special character in the first posion by accident, in all other use cases the user put the special character there on purpose so ignoring it for sorting is bad UX.
Also, the current behavior is counterintuitive for people coming from other linux distros (I used kubuntu and xubuntu before, I think the behavior is differen) or from windows. I think we should strive to welcome those users with their habits.

Maybe also relevant (but not in favor of the proposal there): #1967

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