Skip to content

Sorting is off for filenames with (2) numbers in parentheses #7059

Closed

Description

@jancborchardt

As you know we generate »filename (2)« for duplicates. Currently sorting goes like this:

  • filename (2)
  • filename (3)
  • filename

Which makes it pretty confusing since the original document is all the way on the bottom. Instead it should go like this:

  • filename
  • filename (2)
  • filename (3)

@schiesbn @PVince81

Activity

  1. PVince81 commented on Feb 4, 2014

    @PVince81
    Contributor

    The users list uses a different algorithm based on this code: http://my.opera.com/GreyWyvern/blog/show.dml/1671288

    We'd better make a generic solution / utility function for inserting elements into a table and reuse it in the file list and users list.

  2. PVince81 commented on Feb 4, 2014

    @PVince81
    Contributor

    Let's also use this ticket for sorting efficiency as it goes together with making this consistent so I'd see this as a similar task.

    For long lists, this is the current behavior:

    1. When adding a new file, the correct position is looked up by traversing the list starting from the top, then the new file is inserted
    2. When adding a new user, the whole list is resorted (no insert sort).

    Steps to fix this:

    1. Make sorting consistent, first using insert sort like in the files list
    2. Make the sorting use the algo from the users list (see above URL) to have a more human-readable sort order
    3. Make the sorting more efficient.
  3. modified the milestones: , on Jun 20, 2014
  4. self-assigned this
    on Jul 23, 2014
  5. LukasReschke commented on Sep 16, 2014

    @LukasReschke
    Contributor

    Should be fixed by #7254

  6. modified the milestones: 8.0, on Mar 2, 2016
  7. lock commented on Aug 5, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions