BibTeX, biblatex and bibersort references alphabetically

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Ramadan Babers
Posts: 9
Joined: Mon Jun 06, 2016 10:21 am

sort references alphabetically

Post by Ramadan Babers »

i am use the template:
http://www.latextemplates.com/template/ ... ral-thesis

i need the references arranged alphabetically.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: sort references alphabetically

Post by kaiserkarl13 »

How about using alpha.bst? If that's not the right format, try running "latex makebst" and following the instructions---that will let you sort in a number of ways.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: sort references alphabetically

Post by Johannes_B »

References ordered alphabetically is the default for the template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Ramadan Babers
Posts: 9
Joined: Mon Jun 06, 2016 10:21 am

sort references alphabetically

Post by Ramadan Babers »

kaiserkarl13 wrote:How about using alpha.bst? If that's not the right format, try running "latex makebst" and following the instructions---that will let you sort in a number of ways.
Kindly, where I need to write alpha.bst?
kindly, clarify the steps.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

sort references alphabetically

Post by Johannes_B »

The template uses the modern system of biblatex.

Code: Select all

\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
The style is author year and the references are ordered alphabetically. If this is not the case, you changed something and need to show a minimal working example.

You cannot use alpha.bst without changing the template and getting rid of the advantages that are preset.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Ramadan Babers
Posts: 9
Joined: Mon Jun 06, 2016 10:21 am

Re: sort references alphabetically

Post by Ramadan Babers »

thanks for reply.
exactly what I need is I need to keep the numeric and the references need to be sorted alphabetically in References section. Is it available?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

sort references alphabetically

Post by Johannes_B »

Well, who could have guessed that you want a numeric style, for which the reference list is sorted alphabetically by default. style=numeric
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Ramadan Babers
Posts: 9
Joined: Mon Jun 06, 2016 10:21 am

Re: sort references alphabetically

Post by Ramadan Babers »

I use:

usepackage[backend=bibtex,style=numeric,natbib=true]{biblatex}

but the references appear as:

[1] Hazem Ahmed and Janice Glasgow. “Swarm intelligence: concepts,
models and applications”. In: School Of Computing, Queens
University Technical Report (2012).
[2] Khaled Ahmed, Ahmed Ibrahem Hafez, and Aboul Ella Hassanien.
“A discrete Krill herd optimization algorithm for community
detection”. In: 2015 11th International Computer Engineering
Conference (ICENCO). IEEE. 2015, pp. 297–302.
[3] Taher Alzahrani and KJ Horadam. “Community detection in bipartite
networks: Algorithms and case studies”. In: Complex Systems
and Networks. Springer, 2016, pp. 25–50.
[4] Ramadan Babers, Aboul Ella Hassanien, and Neveen I Ghali. “A
nature-inspired metaheuristic Lion Optimization Algorithm for
community detection”. In: 2015 11th International Computer Engineering
Conference (ICENCO), Cairo University, Egypt. IEEE. 2015,
pp. 217–222.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

sort references alphabetically

Post by Johannes_B »

And the list is sorted alphabetically. What do you expect more?

Maybe you want an additional \DeclareNameAlias{author}{family-given}?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Ramadan Babers
Posts: 9
Joined: Mon Jun 06, 2016 10:21 am

sort references alphabetically

Post by Ramadan Babers »

Johannes_B wrote:And the list is sorted alphabetically. What do you expect more?

Maybe you want an additional \DeclareNameAlias{author}{family-given}?

Kindly, Ref. No [4] (Ramadan) appears after Ref. No [3] (Taher) which is wrong.
I need [4] before [3] as T is after R.

this is for example,
Post Reply