3

I want to sort my bibliography by Serbian Latin and Cyrillic. The order of sorting which I want is: A А B Б C Ц Č Ч Ć Ћ D Д Dž Џ Đ Ђ E Е F Ф G Г H Х I И J Ј K К L Л Lj Љ M М N Н Nj Њ O О P П R Р S С Š Ш T Т U У V В Z З Ž Ж

The double letters aren't double. The first is Latin and the second is Cyrillic. The sorting should be like authoryear but ordered by these letters.

Compile with XeLaTeX MWE

\documentclass{article}
\usepackage[serbian]{babel}

\usepackage[backend=biber, style=authoryear]{biblatex}
\addbibresource{ref.bib}

\begin{document}
Lorem \parencite[42]{hegel1975}, 

ipsusm \parencite[122]{eliot1963}, 

loremipsum \parencite[33]{petkovic2006}

\newpage
\printbibliography
\end{document}

ref.bib file

@book{hegel1975,
author       =  {Georg Vilhelm Fridrih Hegel},
title        =  {Istorija filozofije},
year         =  {1975},
publisher    =  {Beogradski izdavačko-grafički zavod},
location     =  {Beograd},
edition      =  {treće izdanje},
translator   =  {Dr Nikola M. Popović}
}
@book{eliot1963,
author       =  {T.S. Eliot},
title        =  {Izabrani tekstovi},
year         =  {1963},
publisher    =  {Prosveta},
location     =  {Beograd},
translator   =  {Milica Mihailović}
}
@book{petkovic2006,
author       =  {Радослав Петковић},
title        =  {Византијски интернет},
year         =  {2006},
publisher    =  {Стубови културе},
location     =  {Београд}
}

T.S. Eliot should go after Радослав Петковић in the bibliography.

14
  • 1
    I saw a similar question but it isn't for bibliographies but for indexing. tex.stackexchange.com/questions/536521/… Nov 9, 2020 at 7:58
  • 1
    well start by providing a small example (including a sample bib file) that can be used for tests. Nov 9, 2020 at 8:05
  • 1
    I wrote "provide an example including a bib file", not "provide only a bib file". It is your problem, so you should spent the time to setup a sensible test environment with all needed files. Nov 9, 2020 at 8:41
  • 1
    Did you try to add field like sortname = {Radoslav Petković} in .bib file?
    – Урош
    Nov 9, 2020 at 11:48
  • 1
    Biber uses Perl's Unicode::Collate::Locale for localised sorting. If the sort order you want is not available in that module I don't think you can easily get it. Not sure if it is possible to request a new locale for Unicode::Collate::Locale. Of course you could ask Biber to implement custom sort locales (github.com/plk/biber/issues).
    – moewe
    Nov 9, 2020 at 19:26

1 Answer 1

0

This problem can be solved by using sortname field in bib file:

@book{eliot1963,
author       =  {T.S. Eliot},
title        =  {Izabrani tekstovi},
year         =  {1963},
publisher    =  {Prosveta},
location     =  {Beograd},
translator   =  {Milica Mihailović},
sortname     =  {T.S. Eliot}
}
@book{petkovic2006,
author       =  {Радослав Петковић},
title        =  {Византијски интернет},
year         =  {2006},
publisher    =  {Стубови културе},
location     =  {Београд},
sortname     =  {Radoslav Petković}
}

You will need to write the name of the author in sortname field using Latin script in order to have consistent sorting. Use Cyrillic if you want Cyrillic sorting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.