How to order disambiguated bibliography entries (author-year style)

In APA style bibliografies multiple works with the same author get disambiguated by adding a lowercase letter after the year like so:

Author (2024a). A Title.
Author (2024b). Different Title

However when using the bibliography function in typst, they get ordered alphabetically by title. But the lowercase letter seem to get assigned in reverse order. So you end up with:

Author (2024b). A Title.
Author (2024a). Different title.

Minimal Example


@article{article_a,
  title={B is the first letter},
  author={Lastname, Firstname},
  year={2024}
}

@article{article_b,
  title={A is the first letter},
  author={Lastname, Firstname},
  year={2024}
}


@article{article_1,
  title={A is the first letter},
  author={Lastname, Firstname},
  year={2026}
}

@article{article_2,
  title={B is the first letter},
  author={Lastname, Firstname},
  year={2026}
}


@article_a

@article_b

@article_1

@article_2

#bibliography("incollection.bib", style: "apa")

renders as:

Is this a known behaviour?

If not and anyone runs into this:

My solution was to add a space before the title I wanted to go first in the bibtex file. This doesn’t get rendered but moves it before any other characters.

It is still technically wrong as the references should be in alphabetical order by title but having a and b in the wrong order is much more noticeable.