APA 7 descending date style puts web pages first

So the APA CV style that is supposed to sort in descending order -- I notice it's not. Or, on closer inspection, it is sorting in reverse chronological order, but it's doing a date sort AFTER it first puts two things with the item type "web page," instead of mixing them in together with the rest of the articles.
The book chapters are intermixed like I expected them to be.
I *think* this is new -- I don't remember having to manually fix this before.
Maybe this is what other people want this style to do? Personally I don't have a separate section for "peer reviewed articles and chapters" and "non-peer reviewed publications"....

The style under discussion: American Psychological Association 7th edition (curriculum vitae, sorted by descending date)
  • looking at the style, that shouldn't be the case -- the items have actual dates or just access dates?
  • Sorry, I forgot to follow up.
    I just tried again, and yes, the items have actual dates. Here's the order (when using the APA CV style):

    - an item with the item type "web page," date 2019, and no access date
    - an item with the item type "web page," date 2017, and no access date
    And then there are the real articles and book chapters, in reverse chronological order as expected, from 2024 and going backwards.

    I tried changing the item type from "web page" to "journal article" -- changing nothing else about the dates in the record, unless something happens automatically -- and that slots it in in the appropriate place in the reverse chronological order.

    FTR, I have a whole subcollection where I keep these items, for easy updating of my CV, and I am inserted the formatted records into the word document not via the Zotero menu in Word, but by selecting all the records in the subcollection in Zotero, right click, create bibliography, APA 7 CVC style, output mode bibliography, copy to clipboard.
  • Got it, thanks -- I have a working version here: https://github.com/citation-style-language/styles/raw/df7bd6ee04ea34b95617f9650d56a9ee65bab4c9/apa-cv.csl
    Once we agree this is the right fix, it'll replace the current APA CV style.
  • Looks good to me. And wow, installing the new style was super easy -- one click and it did itself!
  • This is fixed now in the official APA CSL style
  • I'm picking on up this old thread because I have noticed that the APA CV style isn't doing the correct reverse chronological order for conference papers/posters.
    I put all my conference presentations into Zotero records manually. Mostly they have a specific date; sometimes I'm lazy and I just put the month, especially if I wasn't the person who went to the conference and did the talk.
    I just went to refresh my CV and I notice that they aren't in chronological order. Well, the years are reverse chronological, but within each year, the dates are chronological (January to December).
    I would be thrilled if someone could fix this in the APA 7 CV style :)
    Thank you!

    Here's what I mean -- reverse chronology for the years, but Jan-to-Dec within the year

    Nyhan, K. (2024, March 11).
    Nyhan, K. (2024, March 15).
    Nyhan, K. (2024, April 9).
    Nyhan, K. (2024, May).
    Garmroudi, D., Harsono, D., Atre, S., Nyhan, K., Ho, W., Jin, J., & Khoshnood, K. (2024, July).
    Harsono, D., Atre, S., Nyhan, K., Garmroudi, D., Davis, J. L., Ho, W., & Khoshnood, K. (2024, July 24).
    Parker, R., Ross-White, A., Rethlefsen, M., Grossetta Nardini, H., Batten, J., & Nyhan, K. (2024, September).
    Choy, C. C., Nyhan, K., Savusa, K., Soti-Ulberg, C., Rosen, R. K., Naseri, T., Hawley, N. L., & Sharifi, M. (2023, April).
    Del Biondo, K., Nardini, H. K. G., & Nyhan, K. (2023, May).
    Del Biondo, K., Nardini, H. K. G., & Nyhan, K. (2023, May).
    Comer, C. C., Nyhan, K., & Splenda, R. (2023, June 6).
    Nyhan, K. (2023, October 19).
    Nyhan, K. (2023, November 15).
    Wu, B., Shabanova, V., Arslanian, K., Nyhan, K., Izampuye, E., Taylor, S., Muasau-Howard, B., & Hawley, N. (2022, March).
    Roth, S., Nyhan, K., Vanderboll, K., Brennan, E., & Grimshaw, A. (2022, April).
    Nyhan, K., & Grimshaw, A. (2022, May).
    Nyhan, K., Premji, Z., Šímová, T., & Tay, A. (2022, October 18).
    Burgess, R., Nyhan, K., Freudenberg, N., & Ransom, Y. (2022, November 7).
    Peng, M., Rhodes, E., Aloe, C., Hennein, R., Deyling, M., Nyhan, K., Schwartz, A., Zhou, K., Kataque, M., Spiegelman, D., & Hagaman, A. (2022, December 13).
  • edited October 15, 2024
    See the discussion here: https://github.com/citation-style-language/styles/pull/6887#issuecomment-1936543558

    When sorting, “nothing” comes before “anything”, so, for dates, items without month/day information come before items that do have month/day. When this sorting is reversed, the result is that items with just a year displayed are sorted last. This means that webpages come before journal articles, which doesn’t seem appropriate for a CV.

    I recommend keeping the forward-chronological sorting within year.
  • edited October 15, 2024
    You could edit the style to change this line to sort descending, but note that it produces some bizarre behavior across item types that display different date parts or when date parts are missing for some items. This might not matter for your case depending on how you are constructing your CV, but for the general case where we would like to ensure, eg, that journal articles come before webpages, I am going to keep the forward-chronological within years sorting.

    <key macro="date-sort" sort="ascending"/>
  • Thanks for explaining.
Sign In or Register to comment.