Problem/Motivation

When sorting open revisions RevisionTreeIndex does a sort based on the revision hash. This is an ascii sort on the string, therefore 10-abc is less than 9-abc. This is not what we need.

Proposed resolution

Sort by the ID before the -, then by the whole hash.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

timmillwood created an issue. See original summary.

timmillwood’s picture

StatusFileSize
new1.06 KB
timmillwood’s picture

Status: Active » Needs review
Issue tags: +Needs tests
timmillwood’s picture

Issue tags: -Needs tests
StatusFileSize
new33.24 KB
new34.3 KB
timmillwood’s picture

Assigned: timmillwood » Unassigned
StatusFileSize
new15.94 KB

Here's a rough interdiff without the noise of moving a webtest to a browser test.

timmillwood credited jeqq.

timmillwood’s picture

timmillwood’s picture

  • timmillwood committed 9fa386b on 8.x-1.x
    Issue #2954537 by timmillwood, jeqq, vijaycs85: Revision tree sorting...
timmillwood’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.