<div dir="ltr"><span style="font-size:13.333333015441895px;color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;line-height:22.39583396911621px;white-space:pre-wrap;background-color:rgb(254,254,254)">I really need help with <a href="https://bugs.kde.org/show_bug.cgi?id=254404" target="_blank">this bug</a>!
Here's what I can see:

CollectionTreeView calls createMetaQueryFromItems, which does not seem to return tracks in the visible order. Do I sort the tracks myself? How?

FileView creates a directory loader, which calls qStableSort(with Meta::Track::lessThan, so they're always sorted in ascending order, regardless of the way they're displayed.

IPodPlaylistProvider, CollectionTreeItemModel::dropMimeData and mp3tunesservice use intermediate QMap, so they aren't sorted by visible order.</span><div><font color="#2e3436" face="Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:22.390625px;white-space:pre-wrap"><br>

</span></font></div><div><font color="#2e3436" face="Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:22.390625px;white-space:pre-wrap">I would really appreciate some guidance as to how I should approach this problem.<br>

</span></font><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">---<div>Anmol</div><div><br></div><div style>//Resent with a subject to make it past spam filters</div>

</div>
</div></div>