Subject: bug#52354: 27.2; bibtex-sort-buffers fails at least for types @PhdThesis and @TechReport

From: Dominik Schrempf <[email-masked]>
Date: Fri, 10 Dec 2021 14:32:12 +0100

Hello,

thank you for looking into this.

I can reproduce this bug using `emacs -Q`:

1. Start `emacs -Q`.
2. Open the attached bibliography file.
3. `M-x bibtex-set-dialect RET`; `biblatex RET`.
4. `bibtex-sort-buffer`.

I expect the middle entry (@PhdThesis) to move to the bottom but nothing
happens. The file sorts correctly when the dialect is `BibLateX`, and not
changed.

Lars Ingebrigtsen <[email-masked]> writes:

> Dominik Schrempf <[email-masked]> writes:
>
>> When using `bibtex-sort-buffers’ on a BibTeX file with BibLaTeX dialect,
>> items of type @PhdThesis and @TechReport (but probably other types too)
>> are not sorted correctly.
>>
>> For example, the following order is not changed when executing the
>> mentioned function:
>>
>> @Article{Shaw2013, …}
>> @PhdThesis{Siren2012, …}
>> @Article{Shih2013, …}
>
> Trying to sort that with `bibtex-sort-buffers’ doesn’t seem to do
> anything, with or without the @PhdThesis entry?
>
> Do you have a complete recipe for reproducing the problem, starting from
> “emacs -Q”?  (And a complete test file would be helpful, too.)