{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/320","repository_url":"https://api.github.com/repos/jgm/pandoc-citeproc","labels_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/320/comments","events_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/320/events","html_url":"https://github.com/jgm/pandoc-citeproc/issues/320","id":293403454,"number":320,"title":"Sorting bibliographies with special characters","user":{"login":"kchalipa","id":19555131,"avatar_url":"https://avatars3.githubusercontent.com/u/19555131?v=4","gravatar_id":"","url":"https://api.github.com/users/kchalipa","html_url":"https://github.com/kchalipa","followers_url":"https://api.github.com/users/kchalipa/followers","following_url":"https://api.github.com/users/kchalipa/following{/other_user}","gists_url":"https://api.github.com/users/kchalipa/gists{/gist_id}","starred_url":"https://api.github.com/users/kchalipa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchalipa/subscriptions","organizations_url":"https://api.github.com/users/kchalipa/orgs","repos_url":"https://api.github.com/users/kchalipa/repos","events_url":"https://api.github.com/users/kchalipa/events{/privacy}","received_events_url":"https://api.github.com/users/kchalipa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-02-01T04:52:57Z","updated_at":"2018-02-08T20:33:01Z","closed_at":"2018-02-08T20:32:38Z","author_association":"NONE","body":"Hi all,\r\n\r\nI've run into a challenge with pandoc-citeproc regarding the way it sorts special characters. It seems that *any* special character (even common glyphs like à) or diacritic is sorted after the letter Z, which can cause major sorting problems in large bibliographies. I posted an example of this on [StackExchange](https://stackoverflow.com/questions/48358317/alphabetically-sort-special-characters-in-pandoc-citeproc-bibliography); basically what you'll see is that a name like Ábe will be sorted after a name like Aze. This strikes me as an issue that would affect many writers who rely on special characters or diacritics in their work--is there any way to resolve this?\r\n\r\nAs a further note, I will point out that different authors may have different sorting criteria that are hard to cover in a one-size-fits-all approach. For example, I might want to order my bibliography \"San, Šen, Son, Šun\", while another author would want to treat the Š as its own letter (San, Son, Šen, Šun). In addition, there are disciplines that use extra characters like ʿ or ʾ that are typically ignored altogether in alphabetical sorting, but are currently sent to the end of the alphabet. Given how idiosyncratic these scenarios can get, the best solution that I can think of is to include some kind of sort key that lets me tell the parser where to put the entry; so if I have a citation like \"al-ʿUdhrī\" I could tell it to be sorted not under \"a\" nor under \"z\" but under \"u\", as though it were \"Udhri\". Such solutions have been devised for [BibTeX](http://www.tex.ac.uk/FAQ-bibprefixsort.html); is there, or could there be, something similar with pandoc-citeproc?\r\n\r\nSorry if this has already been answered elsewhere and I failed to find it."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/comments/364239510","html_url":"https://github.com/jgm/pandoc-citeproc/issues/320#issuecomment-364239510","issue_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/320","id":364239510,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars0.githubusercontent.com/u/3044?v=4","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T20:33:01Z","updated_at":"2018-02-08T20:33:01Z","author_association":"OWNER","body":"OK, I've got a fix that works with all of your examples.\r\nI haven't tried the Arabic cases, because I don't know how to set them up, but feel free to test further!\r\n"}}
{"actor":{"display_login":"jgm"}}