D25741: Add natural sorting and case-insensitive sorting for all role-types

George Vogiatzis noreply at phabricator.kde.org
Wed Dec 18 10:46:54 GMT 2019


gvgeo updated this revision to Diff 71769.
gvgeo retitled this revision from "Add case-insensitive sorting for all role-types" to "Add natural sorting and case-insensitive sorting for all role-types".
gvgeo edited the summary of this revision.
gvgeo added a comment.


  Add funciton `roleLessThan`. Kept 'nameLessThan' instead of changing it to 'stringLessThan'
  Add funciton `stringRolesTrue`. To compare multiple values to m_sortRole
  Added `stringRolesTrue` in `KFileItemModel::sort` for `parallelMergeSort`. To speed up now that have natural sorting.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D25741?vs=70899&id=71769

REVISION DETAIL
  https://phabricator.kde.org/D25741

AFFECTED FILES
  src/kitemviews/kfileitemmodel.cpp
  src/kitemviews/kfileitemmodel.h

To: gvgeo, #dolphin, nicolasfella, meven
Cc: meven, kfm-devel, pberestov, iasensio, fprice, MrPepe, fbampaloukas, alexde, Codezela, feverfew, spoorun, navarromorales, firef, ngraham, andrebarros, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20191218/0d9bbc69/attachment.htm>


More information about the kfm-devel mailing list