Order by size in the search window

I needed to sort my search results by size... They don't order automatically during the search if the column is selected, oh dear...

So I click on the size column. I have file sizes in KB, MB, GB. They should be sorted, right? There seems like a break in the sorting.

Since the list is too long for a complete screenshot, here are the details:
it starts at a certain intermediate size X (this size varies in different conditions), goes down to the smallest size, then starts with the largest size and goes down to size X again.

This seems like a bug to me.


Did you wait until the search was finished before sorting?
When displaying results in the Find Window or Output Window, newly found files are always added to the end of the list, irrespective of sort order.

If you output to a File Collection (Lister) then the sort will be updated as results are found.

I did.
My point is not that the search doesn't order the files. That would be another subject. I've already noticed that it presents the files in the order they are found, regardless of the column that's selected.

But my point is that once the search is finished, if you select a sort order, there are like 2 joined sorted lists, as shown in the capture.

I can't reproduce this here.

What I think may be happening is that you had the list already sorted by size (or clicked the size column while the search was happening.)

After that, clicking the size column again just reverses the current order of the files in the list - it doesn't actually perform a re-sort.

Try clicking the name field, and then go back to size sorting, and see if that fixes it.

I was absolutely positive about not changing the order while the search is being done. As you can see in the screenshot, the list is sorted up to one point, then the next part is also sorted. This would be very difficult to generate if I didn't wait the search to finish.

I can reproduce the bug with large lists (hundreds of files). There seems to be no visible bug in small lists.

Well, if I click on the name field then go back to size column, here are the results:

  • ascending order: files are sorted from 0 KB to 2.23 GB, then one file of 144 MB (so everything right but the last file)

  • descending order: files are sorted from a certain file size Y (different than the one I had in the first message), then go to 0, then start over from the second biggest size and go to size Y, then the last file is the biggest one (it should have been the smallest).

I hope it's explicit enough.

I can reproduce the problem where Opus doesn't properly sort the data when the Find completes.

If I do a similar search using the Find window, with results also going to the Find window, and I sort by Size before or during the search, then the results end up incorrectly sorted.

However, if I then click the Size header after the search has completed then Opus does correctly sort the list, as far as I can tell.

So I don't think I'm seeing exactly the same thing as mark_d but there's definitely something wrong.

Workaround:

Send the results to a Lister (Collection) and there is no problem. The issue only affects results which go to the Find window.

The Find window can be set to send results to a lister, or you can use the Find panel which is better, IMO. (The panel will appear as part of a lister and can do everything that the old separate window can do.)