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

Author Sort Secondary Sort is Wrong #20

Open
branthom opened this issue Aug 6, 2023 · 0 comments · May be fixed by #23
Open

Author Sort Secondary Sort is Wrong #20

branthom opened this issue Aug 6, 2023 · 0 comments · May be fixed by #23
Labels
bug Something isn't working

Comments

@branthom
Copy link

branthom commented Aug 6, 2023

This is a repeat of bug #42323 submitted in 2014.

When sorting by author (<AUTHSORT>), the secondary sort key (date) is incorrect (random dates).

--- mhutil-dist.pl	2020-11-16 09:17:01
+++ mhutil.pl	2023-08-05 23:52:48
@@ -282,7 +282,7 @@
         } else {
             return sort {
                        ($from{$a} cmp $from{$b})
-                    || ($Time{$a} <=> $Time{$a})
+                    || ($Time{$a} <=> $Time{$b})
             } keys %Subject;
         }

mhtuil.pl.patch

@ikedas ikedas added the bug Something isn't working label Aug 6, 2023
@ikedas ikedas linked a pull request Jun 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants