Skip to content

sort lowercase names (e.g., bell hooks) in apa.csl and others? #189

Closed
reagle opened this Issue Jun 29, 2012 · 9 comments

5 participants

@reagle
reagle commented Jun 29, 2012

This issue evolved from #185. The question is in the references should bell hooks (i.e., "hook, b.") be with the other Hs, or at the end with other lowercase letters? It is presently at the end (lowercase letters are apparently sorted after upper case letters). Assuming APA (or any other style) said one should sort upper/lower case together, how does one achieve this in CSL? Thanks!

@adam3smith
Citation Style Language member
@rmzelle
Citation Style Language member
rmzelle commented Jun 29, 2012

@adam3smith, shouldn't alphabetic sorting be case-insensitive to begin with?

@adam3smith
Citation Style Language member
@fbennett
Citation Style Language member
fbennett commented Aug 2, 2012

Sorry for the late response. In the specifc case of citeproc-js, it attempts to use a locale collation for sorting. When a collation is not available, or when it is broken, you may get a binary sort, which will treat uppercase and lowercase letters differently, and the sort will behave strangely in other ways as well. I'd need to know more about the specific environment to trace the fault.

@rmzelle
Citation Style Language member
rmzelle commented Oct 31, 2012

@reagle, is this again with pandoc? If so, you can file an issue at citeproc-hs ( http://code.google.com/p/citeproc-hs/ ) and link to this thread.

@bdarcus
Citation Style Language member
bdarcus commented Oct 31, 2012

shouldn't alphabetic sorting be case-insensitive to begin with?

Yes.

@adam3smith
Citation Style Language member

Closing this. Citeproc-js sorts case-insensitive, all other processors should do so as well. I don't think there's a solution for dealing with lowercased names and they're sufficiently rare to ignore them.

@adam3smith adam3smith closed this Mar 31, 2013
@fbennett
Citation Style Language member

As a postscript to this thread re citeproc-js, some JavaScript engines have poor support for collation-based (case-insensitive) sorting. A custom string compare function can be set by the calling application [as sys.stringCompare] to cope with the vagaries of specific environments (thanks to a patch submitted by Carles).

@bdarcus
Citation Style Language member
@rmzelle rmzelle referenced this issue in citation-style-language/documentation Jun 2, 2013
Open

Note that sorting is case-insensitive #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.