plk / biblatex-apa

APA style for BibLaTeX
90 stars 48 forks source link

groupauthor not included in sort criteria #143

Closed ajtalbot closed 3 years ago

ajtalbot commented 3 years ago

Currently, the groupauthor tag is not taken into account when determining the sort order of the references. So, although the formatting of group-authored references is correct, they are treated as author-missing items with regard to sorting.

plk commented 3 years ago

Do you have an example of this? groupauthor is in the apa sorting template in apa.bbx.

ajtalbot commented 3 years ago

The following MWE and bibliography illustrate the phenomenon. It seems to be caused by the sorting=nyt option in the \usepackage optional arguments. With that supplied, the bibliographic items appear in the following order.

  1. Combs and Freedman
  2. Madill et al.
  3. DfE and DH (title = "Special educational needs ..."; i.e., beginning with "S")
  4. Tennant et al.

But if I omit the sorting=nyt option, then the bibliographic items do get listed in the correct order.

groupauthor.tex

\documentclass[jou, a4paper]{apa7}
\usepackage{csquotes}

\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}

\addbibresource{groupauthor.bib}

\title{Title: Subtitle}
\shorttitle{Short Title}
\authorsnames{Author}
\authorsaffiliations{Affiliation}
\abstract{}

\begin{document}

\maketitle

\textcite{combs2012a}\par
\textcite{dfe-dh2015a}\par
\textcite{madill2000a}\par
\textcite{tennant2007a}\par

\printbibliography

\end{document}

groupauthor.bib

@article{combs2012a,
  author = {Combs, Gene and Freedman, Jill},
  date = {2012},
  title = {Narrative, poststructuralism, and social justice: Current practices in narrative therapy},
  journal = {The Counseling Psychologist},
  volume = {40},
  number = {7},
  pages = {1033--1060},
  doi = {10.1177/0011000012460662},
}
@report{dfe-dh2015a,
  groupauthor = {{Department for Education} and {Department of Health}},
  date = {2015},
  title = {Special educational needs and disability code of practice: 0 to 25 years},
  number = {DFE-00205-2013},
  _address = {London, England},
  _publisher = {Department for Education},
  url = {https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/398815/SEND_Code_of_Practice_January_2015.pdf},
}
@article{madill2000a,
  author = {Madill, Anna and Jordan, Abbie and Shirley, Caroline},
  date = {2000},
  title = {Objectivity and reliability in qualitative analysis: Realist, contextualist and radical constructionist epistemologies},
  journal = {British Journal of Psychology},
  volume = {91},
  number = {1},
  pages = {1--20},
  doi = {10.1348/000712600161646},
}
@article{tennant2007a,
  author = {Tennant, R. and Hiller, L. and Fishwick, R. and Platt, S. and Joseph, S. and Weich, S. and Stewart-Brown, S.},
  date = {2007},
  title = {The {Warwick}--{Edinburgh} {Mental} {Well-being} {Scale} ({WEMWBS}): Development and {UK} validation},
  journal = {Health and Quality of Life Outcomes},
  volume = {5},
  number = {63},
  pages = {1--13},
  doi = {10.1186/1477-7525-5-63},
}
plk commented 3 years ago

This is by design - the style has its own sorting scheme corresponding to APA guidelines which is used by default. If you use any of the default sorting schemes like "nyt" then sorting won't be according to APA standards.

ajtalbot commented 3 years ago

Ah, I see! Thank you.