Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Non-destructive Sort #23

Closed
flywire opened this issue May 19, 2020 · 8 comments
Closed

Use Non-destructive Sort #23

flywire opened this issue May 19, 2020 · 8 comments

Comments

@flywire
Copy link
Contributor

flywire commented May 19, 2020

I assume this is understood,

Say sort required by Name then Time. Sorting by Date then From or To should leave all records for each From or To in Date order.

@Dijji
Copy link
Owner

Dijji commented May 19, 2020

I do know what you mean, and this has annoyed me too. I will take a look.

@Dijji
Copy link
Owner

Dijji commented May 20, 2020

Yes, this is doable.

The proposed rule is: last sort clicked, dominates. So if you want sort by sender, then subject, then date you would click the headers for date, subject and sender in that order, toggling each as you go to get ascending or descending as required. Does that sound right?

One question in my mind is to whether to limit the number of sorts applied, so that, say, sorts are applied to only the last two headers clicked, out of the four available (including attachments). What do you think?

Dijji

@Ekuuleus
Copy link

Ekuuleus commented May 20, 2020 via email

@Dijji
Copy link
Owner

Dijji commented May 20, 2020

No, I wasn't worried about efficiency, but rather comprehensibility. The 'last one wins'approach seems to be a fairly standard solution, with the main drawbacks being discoverability and being required to think in reverse order. I was thinking that maybe restricting it to two levels (and making this visible by showing sort direction arrows on only two columns) might make the behaviour deducible to the uninitiated.

I was thinking about delegating the actual sort to the built-in capabilities of the WPF ListView, which actually seem to be acceptably efficient.

Dijji

@flywire
Copy link
Contributor Author

flywire commented May 20, 2020

Thinking open folder in the existing default order (Date?). A user could sort any field, repeating to toggle ascending/descending, for as many fields and times as they like. The effect would be if the sort order is not as required then the user keeps sorting until it is.

@Dijji
Copy link
Owner

Dijji commented May 21, 2020

flywire okay, unlimited it will be. Thanks

Ek Good challenge, thank you. I completely omitted to say what I was worried about.

@Dijji
Copy link
Owner

Dijji commented May 21, 2020

Changes released as version 1.11

@flywire
Copy link
Contributor Author

flywire commented May 22, 2020

Nice work.

@flywire flywire closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants