<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: kde-frameworks-devel.<br />davidedmundson requested review of this revision.
</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/D13866">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The intention of this code is to find the new insertion index in the<br />
cache where a resource should now be by counting number of items in the<br />
cache with a higher score/update time/whatever.</p>
<p>FixedItems comparison compares two resources by string IDs, checking if<br />
they're user pinned. If so they go on top.</p>
<p>In FullOrdering if neither compared item is pinned it also compares literal<br />
resourceId. Useful if you have no other sorting tests and want to<br />
maintain order, not useful if we want to contintue to compare the score<br />
as in 50% case of the cases we'll fail our lessThan early.</p>
<p>BUG: 396102</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran test app<br />
Changed some scores by clicking in kickoff<br />
They moved appropriately instead of being moved all over the place</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R159 KActivities Statistics</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13866">https://phabricator.kde.org/D13866</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/resultmodel.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>