Natural sort settings

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 131
Joined: Wed Jan 09, 2013 9:06 am

Natural sort settings

Post by w64bit » Tue Jun 22, 2021 12:20 pm

The natural sort has on/off setting?

therube
Posts: 3031
Joined: Thu Sep 03, 2009 6:48 pm

Re: Natural sort settings

Post by therube » Tue Jun 22, 2021 3:05 pm

(From what I recall, no. At least that was the case a long while back.)
Natural sort cannot be disabled and affects all text sorting.

Sorting is generally faster in Everything 1.5 compared to Everything 1.4

Everything 1.5 uses stable binary sort for less than 256 items and a queued merge sort, giving better overall multi-threaded performance.
Everything 1.4 uses a sub divided mixture of multi-threaded qsort and merge sort and can suffer from unbalanced sub division (one subdivision sort can complete early and that thread will sit there doing nothing for the rest of the sort).
the sort order cannot change easily. The entire database would need to be rebuilt.

void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Re: Natural sort settings

Post by void » Tue Jun 22, 2021 11:28 pm

Natural sort cannot be changed on the fly (due to how the database is stored).

Is there something you would like to see changed with natural sorting?

w64bit
Posts: 131
Joined: Wed Jan 09, 2013 9:06 am

Re: Natural sort settings

Post by w64bit » Wed Jun 23, 2021 12:51 pm

The names containing numbers are sorted now like this:
*1x1*
*002-003*
*02-1*
*2'*
I understand the logic of the natural sorting.

Can the names containing numbers be sorted like this?
*002-003*
*02-1*
*1x1*
*2'*

void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Re: Natural sort settings

Post by void » Thu Jun 24, 2021 12:56 pm

I have put on my TODO list to add an option to sort by unicode code point.

Unicode code point sorting will most likely not be as fast as natural sorting.

Thanks for the suggestion.

Post Reply