[Tex/LaTex] How to sort bibliography by languages in bibtex

bibtexlanguagessorting

As an absolute newbie in Tex-related stuff, i need your advice.
I'm making an article in online version of Tex – sharelatex.com, so i need to sort the bibliography from .bib-file for my article by the language of sources.
Here i have the code:

\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
Some text \cite{}.
\bibliographystyle{gost780s}
\bibliography{name}
\end{document}

The bibtex file looks like:

@article{Razumova,
title={Исламский Банкинг: Мировой Опыт и Возможности Для России},
author={Разумова, Ирина Анатольевна},
journal={Учебные Записки Международного Банковского Института},
number={11-1},
pages={157-166},
year={2015},
language="russian",
publisher={Международный Банковский Институт Санкт-Петербург}
}

@book{iqbal2011introduction,
title={An introduction to Islamic finance: Theory and practice},
author={Iqbal, Zamir and Mirakhor, Abbas},
volume={687},
year={2011},
language="English",
publisher={John Wiley \& Sons}
}

@book{warde2000islamic,
title={Islamic finance in the global economy},
author={Warde, Ibrahim},
year={2011},
language="english",
publisher={Edinburgh University Press}
}

@article{bektax,
title={Исламские налоги как эффективный инструмент решения социально-экономических проблем в местах компактного проживания мусульман в России},
author={Беккин, Р.И},
journal={Проблемы современной экономики},
number={03},
pages={480--490},
year={2009},
language="russian",
publisher={Научно-производственная компания" РОСТ"}
}

As a result, i have the properly-formed bibliography, sorted alphabetically, but beginning with the latin letters. So, what i need is to make my bibliography sorted by language, beginning from the cyrillic-russian.

Best Answer

BibTeX doesn't provide a lot of fancy tools for sorting bib entries other than by authors'/editors' surnames and publication years. A fallback tool is available, though: the \noopsort macro, to be placed at the top of the bib file:

@preamble{ "\providecommand\noopsort[1]{}" }

Then, change the author fields as follows: insert \noopsort{1} at that start of the author (or, if needed, editor) field for the Russian-language entries, and \noopsort{2} at that start of the author field for the Russian-language entries. (You don't have to choose 1 and 2 -- just choose any two non-special characters that come before the alphabetical characters in the ASCII sequence.)

(The following code and associated screenshot use the plain bibliography style, as my TeX distribution doesn't appear to have the gost780s style.)

enter image description here

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@preamble{ "\providecommand\noopsort[1]{}" }

@article{Razumova,
title={Исламский Банкинг: Мировой Опыт и Возможности Для России},
author={\noopsort{1}Разумова, Ирина Анатольевна},
journal={Учебные Записки Международного Банковского Института},
number={11-1},
pages={157-166},
year={2015},
language="russian",
publisher={Международный Банковский Институт Санкт-Петербург}
}

@book{iqbal2011introduction,
title={An introduction to Islamic finance: Theory and practice},
author={\noopsort{2}Iqbal, Zamir and Mirakhor, Abbas},
volume={687},
year={2011},
language="English",
publisher={John Wiley \& Sons}
}

@book{warde2000islamic,
title={Islamic finance in the global economy},
author={\noopsort{2}Warde, Ibrahim},
year={2011},
language="english",
publisher={Edinburgh University Press}
}

@article{bektax,
title={Исламские налоги как эффективный инструмент решения социально-экономических проблем в местах компактного проживания мусульман в России},
author={\noopsort{1}Беккин, Р.И},
journal={Проблемы современной экономики},
number={03},
pages={480--490},
year={2009},
language="russian",
publisher={Научно-производственная компания" РОСТ"}
}
\end{filecontents}

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{lmodern}  % choose a suitable font package
\bibliographystyle{plain}

\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}