sort properties increased to 8 usage

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 535
Joined: Mon Aug 24, 2020 1:16 pm

sort properties increased to 8 usage

Post by anmac1789 »

So I see that the latest update (1341a) has increased sort properties from 3 to 8. Is this the sort properties such as

sort:name-ascending,size-ascending,dm-asceding...etc...etc.. ?
void
Developer
Posts: 14868
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort properties increased to 8 usage

Post by void »

Yes, sort:, dupe:, distinct:, unique: etc...

For example:

sort:name;size;dm;dc;da;attributes
dupe:name;size;dm;dc;da;attributes
anmac1789
Posts: 535
Joined: Mon Aug 24, 2020 1:16 pm

Re: sort properties increased to 8 usage

Post by anmac1789 »

void wrote: Wed Apr 05, 2023 9:46 pm Yes, sort:, dupe:, distinct:, unique: etc...

For example:

sort:name;size;dm;dc;da;attributes
dupe:name;size;dm;dc;da;attributes
Oh wow, it also works for dupe??? what about find-dupe: ??
void
Developer
Posts: 14868
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort properties increased to 8 usage

Post by void »

finddupe: is an alias for dupe:

They both do the same thing.
anmac1789
Posts: 535
Joined: Mon Aug 24, 2020 1:16 pm

Re: sort properties increased to 8 usage

Post by anmac1789 »

void wrote: Thu Apr 06, 2023 1:06 am finddupe: is an alias for dupe:

They both do the same thing.
cool well let's try and see if this works especially with sort lol I was asking about expanding sort to more than 3 properties a while ago I think...
anmac1789
Posts: 535
Joined: Mon Aug 24, 2020 1:16 pm

Re: sort properties increased to 8 usage

Post by anmac1789 »

void wrote: Wed Apr 05, 2023 9:46 pm Yes, sort:, dupe:, distinct:, unique: etc...

For example:

sort:name;size;dm;dc;da;attributes
dupe:name;size;dm;dc;da;attributes
does sort:arg1;arg2;ar3...arg8 work similar to sort:arg1 combined with secondary-sort:arg2 ?
void
Developer
Posts: 14868
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort properties increased to 8 usage

Post by void »

No, there's no tertiary-sort: quaternary-sort: etc...

You can specify more than one property with sort:

For example:

sort:name;size;dm;attributes



The right most sort:/secondary-sort: is used.

For example:

sort:name;size;dm secondary-sort:attributes
will sort your results by: name, attributes then dm.
secondary-sort:attributes overwrites the first size secondary sort.

For example:

secondary-sort:attributes sort:name;size;dm
will sort your results by: name, size then dm.
The secondary sort size in sort:name;size;dm overwrites the first attributes secondary sort.
anmac1789
Posts: 535
Joined: Mon Aug 24, 2020 1:16 pm

Re: sort properties increased to 8 usage

Post by anmac1789 »

void wrote: Mon Apr 17, 2023 7:11 am The right most sort:/secondary-sort: is used.

For example:

sort:name;size;dm secondary-sort:attributes
will sort your results by: name, attributes then dm.
secondary-sort:attributes overwrites the first size secondary sort.

shouldn't sort: arrange the results by name:, size: then attributes: the secondary-sort will overwrite the 1st attributes?

void wrote: Mon Apr 17, 2023 7:11 am For example:

secondary-sort:attributes sort:name;size;dm
will sort your results by: name, size then dm.
The secondary sort size in sort:name;size;dm overwrites the first attributes secondary sort.

There is no secondary-sort in size as I see it, size: only exists in the primary sort:
void
Developer
Posts: 14868
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort properties increased to 8 usage

Post by void »

shouldn't sort: arrange the results by name:, size: then attributes:?
Yes, sort:name;size;dm will sort by name, then size, then attributes.


the secondary-sort will overwrite the 1st attributes?
No, secondary-sort: will always overwrite the secondary sort.


There is no secondary-sort in size as I see it, size: only exists in the primary sort:
There appears to be an issue here with the name sort.
Everything is incorrectly sorting with case sensitivity.
I am working on a fix.

I'm seeing the secondary sort of size when using secondary-sort:attributes sort:name;size;dm
void
Developer
Posts: 14868
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort properties increased to 8 usage

Post by void »

Everything 1.5.0.1344a fixes an issue with sorting "string" properties.

Indexing properties could have caused database corruption is previous versions.
This version will require a fresh rebuild of the database.



Everything should now also sort correctly when specifying multiple properties.
Post Reply