Enable numericMode for sorting document list in filetree
ClosedPublic

Authored by wbauer on Apr 14 2017, 9:40 AM.

Details

Summary

Turns on "natural" sorting for the document list in the filetree addon,
so that e.g. 10 comes after 9, not before.
That's how the KDE4 version behaved too.

BUG: 375676

As this is a simple fix, I'd like to commit it to the 17.04 branch too if there are no objections.

Test Plan
  • Open a series of files like sig2.txt, sig3.txt, ..., sig10.txt.
  • Open the "Documents" pane

The file names are "naturally" sorted now (sig10.txt comes after sig9.txt), before the order was "wrong" (sig10.txt, sig2.txt, ... , sig9.txt).
See also attached screenshots.

Diff Detail

Repository
R40 Kate
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
wbauer created this revision.Apr 14 2017, 9:40 AM
wbauer created this object with visibility "wbauer (Wolfgang Bauer)".
wbauer edited the summary of this revision. (Show Details)Apr 14 2017, 9:42 AM

Before this change:

After this change:

wbauer changed the visibility from "wbauer (Wolfgang Bauer)" to "Public (No Login Required)".Apr 14 2017, 9:53 AM
brauch accepted this revision.Apr 14 2017, 10:04 AM
brauch added a subscriber: brauch.

+1, sounds good to me

This revision is now accepted and ready to land.Apr 14 2017, 10:04 AM
This revision was automatically updated to reflect the committed changes.