<table><tr><td style="">rthomsen created this revision.<br />rthomsen added a reviewer: elvisangelaccio.<br />rthomsen set the repository for this revision to R36 Ark.<br />rthomsen added a project: Ark.<br />Restricted Application added a subscriber: kde-utils-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3742" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Commit <a href="https://phabricator.kde.org/R36:7781d6ef794a8da9afe1c837c3a7826103568add" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">7781d6ef794a</a> broke sorting in the sense that folders are no longer sorted before files. This is due to <tt style="background: #ebebeb; font-size: 13px;">KRecursiveFilterProxyModel</tt>'s implementation of sort() being used instead of <tt style="background: #ebebeb; font-size: 13px;">ArchiveModel</tt>'s.</p>
<p>We now subclass <tt style="background: #ebebeb; font-size: 13px;">KRecursiveFilterProxyModel</tt> into <tt style="background: #ebebeb; font-size: 13px;">ArchiveFilterSortModel</tt> so we can re-implement <tt style="background: #ebebeb; font-size: 13px;">lessThan()</tt> and move the relevant code from <tt style="background: #ebebeb; font-size: 13px;">ArchiveModel::sort()</tt>.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Try opening archives of various types and check that sorting for all columns works as expected.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R36 Ark</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3742" rel="noreferrer">https://phabricator.kde.org/D3742</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>part/CMakeLists.txt<br />
part/archivemodel.cpp<br />
part/archivemodel.h<br />
part/archivesortfiltermodel.cpp<br />
part/archivesortfiltermodel.h<br />
part/part.cpp<br />
part/part.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>rthomsen, elvisangelaccio<br /><strong>Cc: </strong>kde-utils-devel, tctara<br /></div>