Questions tagged [sorting]

{sorting} is about sorting document elements. Use this tag in addition to other tags specifying what should be sorted.

Filter by
Sorted by
Tagged with
81
votes
1answer
101k views

Biblatex citation order

I'm facing a problem with biblatex citation order. Using this configuration: \documentclass {article} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \hyphenation{es-ta-bi-li-da-de} \...
27
votes
3answers
103k views

LaTeX/BibTex not arranging citations by order of appearance

I am having an issue with LaTex/Bibtex presenting my citations in order of appearance. I know there a plenty of questions on this and I have read some of them, but the solutions posted don't seem to ...
28
votes
1answer
8k views

biblatex sorting by date

I have written my own biblatex style for citing jurisdiction. I realized that the sorting in the bibliography is not chronological within the years. I addressed the date field to each bibliography ...
29
votes
1answer
8k views

biblatex: Reverse numbering (i.e., count down)

I was wondering if it is possible to get the citation numbers to count down [3] newest item [2] item [1] oldest item in biblatex? I am sorting using either using sorting=none and entering in reverse ...
33
votes
1answer
14k views

Sectioning bibliography by type of referred item

My promoteur has a very unusual requirement: the bibliography needs to be sorted first by specific type of referred item, next by author and by year of publication. I managed to get this custom ...
36
votes
4answers
12k views

BibTeX handling of the Dutch “van” name prefix with natbib

I want to produce the following with LaTeX/BibTeX: In the running text: ... we refer the reader to the work of Van Noort (2010). In the bibliography: Thomas van Noort. An important paper. 2010....
25
votes
5answers
9k views

How to sort an alphanumeric list

I have been trying to find a package or a method to sort lists of names in an easy manner in TeX/LaTeX. I have tried some of the routines in the xfor package, as well as looked at some of the new ...
11
votes
2answers
5k views

Multibib reverse label or sort order

I'm using multibib. I manually set the order of the bibliography. I would like the order of the numbered items to be reversed. For example, my document has: \nociteX{Foo} \nociteX{Bar} And the ...
96
votes
2answers
77k views

How to enter publications “in press”, or “submitted to” in BibTeX?

Is there a convention for how to enter publications that are "in preparation" or "submitted to Some Journal" into a BibTeX database?
24
votes
1answer
14k views

Alphabetically display the items in itemize

I am wondering whether it is possible to display the items alphabetically regardless of the order we type on the backend? For example I am using itemize as follows: \begin{itemize} \item ISDYNSTP:...
16
votes
2answers
2k views

How can I put a name's prefix in front in citations but *not* in the bibliography?

For my Dutch thesis I need to have the prefix to a name when using the \cite command but not in the bibliography. So basically what I need is Cite: ‘De Jonge’ Bibliography: ‘Jonge, Marinus, de’...
8
votes
2answers
3k views

Biblatex: how to automatically sort citation by year (sortcites=ynt) when references are sorted by name (sorting=nyt)

I want to sort in-text citations by year, but bibliography by name. It sound exactly like this question. However, suggested solution (using \usepackage[sorting=ynt]{biblatex} and \printbibliography[...
16
votes
3answers
2k views

Symbol index sorted by occurrence

I would like to make an symbol index which is sorted by occurence of symbol. For example: Something like ... $\omega$\index{$\omega$} ... $A^P_k$\index{$A^P_k$} ... $\{\}$\index{$\{\}$} should ...
14
votes
2answers
5k views

Sorting the bibliography by entry type

I am using BibTeX. For overall configuration I use a .cls file. I am looking for a way to sort the bibliography in this order: Books, articles, and miscellaneous. Currently all types of materials get ...
7
votes
1answer
403 views

bibliography with per-author numbering (and author-year sort)

I'm working on a new edition of a book which uses a very unusual style of bibliography: Entries are sorted in author-year fashion, but then numbered per author or group of authors, e.g.: Milnor, J.: ...
7
votes
1answer
1k views

`\index{…}` in footnode different from `\index{…}` in main text

Dear all I think I have a problem with the collation of makeidx. following some suggestions found here I have got in the text something like this \index[p]{Plutarco!demalignitate@\textit{De ...
33
votes
2answers
26k views

Is it possible to get unsrt + abbrv bibliography?

Is there a ready made BibTeX bibliography style file that both: (1) prints author names abbreviated (like abbrv) in the references section and (2) sorts references numerically in citation order (like ...
67
votes
3answers
166k views

Sort thebibliography by citation order

Can thebibliography be sorted by citation order? Or is there a solution with an inlined bibliography that can be sorted? Not having an additional .bib file would be preferable. My current ...
14
votes
4answers
4k views

Order items in enumerate environment automatically

I have a list of almost 300 items in an enumerate environment \documentclass{article} \begin{document} \begin{enumerate} \item This is the second item. \item This is the third item. \item This is the ...
14
votes
1answer
2k views

Biblatex handling of Dutch “van” prefix

This question has been posed in many different variants, but not exactly as I ask here, so please do not consider this as a duplicate. I use biblatex with the option useprefix. I would like to have ...
20
votes
1answer
32k views

How to get sequential references in my paper?

I'm using TeXnicCenter to write my all document and generate my bib file by using JabRef. However I noticed that my references are out of order. It seems the addition order to JabRef file forces the ...
12
votes
4answers
764 views

Sorting a comma-separated list with LaTeX?

Is there a simple way to sort a comma separated list alphabetically in LaTeX? I tried to write a macro (\sortlist{World, Hello} → "Hello, World") using the l3sort documentation example but it ...
57
votes
6answers
38k views

How to sort BibTeX references in reverse chronological order?

I am trying to get my list of publications to display in reverse chronological order. I can use \bibliographystyle{unsrt} as a workaround, and just order the entries manually, but I would naturally ...
14
votes
3answers
7k views

biblatex - quote in chronological order but bibliography list must be alphabetical order

I want to use more than one type of specification in my bibliography. I want to quote in chronological order but have the bibliography list in alphabetical order. If I am quoting 2-3 references in ...
5
votes
1answer
292 views

Sorting according to more than one key in pgfplotstable

Is it possible to sort rows of a pgfplotstable according to multiple keys? For example, input file is as follows: Mtx Kind P Sp A LP 16 4.2 C OPT 16 72.5 A LP 64 20.3 B OPT 16 5....
25
votes
4answers
868 views

Expandable (quick) sort array macro?

I'm trying to implement a (quick) sort algorithm. Here is what I can do : \documentclass[preview, border=7mm]{standalone} \usepackage{pgffor} % \push{xs}{\i} add \i in the array \xs \def\push#1#2{...
14
votes
3answers
4k views

Order table by row alphabeticaly

I have a table like this: \documentclass[10pt,spanish]{article} \usepackage[T1]{fontenc} \usepackage{selinput} \usepackage{multirow} \usepackage{tabularx} \SelectInputMappings{% aacute={á}, ...
12
votes
1answer
866 views

Sorting Comma Separated Lists defined with, or without macro

I would like to be able to sort a comma separated list. Before I resort to writing something that would require \ensureunix :-) and having that do the sort for me, I thought I'd make an attempt to ...
9
votes
1answer
801 views

Sorting Vietnamese utf8 index with make-rules in xindy package

I am using the xindy package to compile the index containing Vietnamese. It works fine except the order within words. The "standard" order is accepted as the following, which is different from the ...
15
votes
3answers
2k views

How to sort alphabet index in Vietnamese correctly?

I want to use index in Vietnamese Alphabetically. The order must be a, b, c, d, đ, e, ê. But in following code. That order is wrong. The first is "Ê", not "A", the second is "Đ", not "B". How to ...
18
votes
1answer
714 views

Sorting preamble packages thematically while accounting for compulsory load orders

Within a document's preamble (or a custom "preamble" package), at times there's the need to take compulsory load orders for certain packages into account. Most packages must be loaded before the ...
15
votes
1answer
5k views

BibLaTeX: how to sort references by year within the citation

I am using biblatex with the following command: \usepackage[citestyle=numeric-comp,sorting=none]{biblatex}, and then add muptiple citations with, e.g. \cite{Lamont1985, Sorin1983}. I need the ...
10
votes
2answers
451 views

Can't sort references alphabetically

I'm having 2 problems with references in my thesis. First when a last name starts with letter W, it always comes at the top. Before A. But if I change the authors lastname from Wolf to Solf it ...
10
votes
2answers
11k views

Make nomenclature sort math correctly

I am sorting my nomenclature as suggested by the nomencl package documentation, but \dot{q} is being sorted before a and v, where as the desired sort is: a \dot{q} v The existence of a default ...
12
votes
1answer
2k views

Properly sort index containing utf8 characters?

If my input file is utf8 encoded, how to I create an index where the entries are properly sorted? Minimal example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{makeidx} \makeindex \...
10
votes
2answers
4k views

Sort by author in Alpha bibliography

Using the alpha bibliography style, citations are sorted by the citation key. I'd like to use the same style of authors-year citation keys (e.g., [CP92]) but have the bibliography sorted by the first ...
9
votes
2answers
1k views

Applying \lowercase to index entries

I would like to sort the index entries independent of case. Initially I was getting (code provided in MWE) the image on the left. So, that seemed like an easy fix: just apply \lowercase (uncomment ...
9
votes
1answer
1k views

Texindy sorting Icelandic

I use command texindy -L icelandic -M lang/icelandic/utf8 dict_main.idx to create a list of the names of the photographes, their authors and licenses. But the sorting is not correct (for example ...
5
votes
1answer
1k views

How to change order of a bibliography style manually (bilingual bibliography)

I've got a bilingual bibliography (Russian and German). I want to sort the entries alphabetically. The Russian entries have to appear alphabetically as well. Unfortunately, since the authors names are ...
3
votes
2answers
243 views

Separate Biblatex bibliographies with newest entry and highest reference number at the top

I would like to have a similar biblatex behaviour as described here, i.e. separate bibliographies for different publication types, each bibliography should 1) be prefixed with a corresponding label (C ...
3
votes
1answer
2k views

natbib: combining chicago style and sorting by appearance

I would like my citations to be formatted according to the Chicago style, and at the same time numbered by order of appearance. The sort&compress option does work as expected using unsrt ...
4
votes
2answers
370 views

makeindex - print links sorted by page

Auto generate List of \url usages within document describes a method for generating an index of URLs that are used in the document, including page number. However, the URLs are sorted ...
1
vote
1answer
183 views

How to sort corporate authors along personal authors with bibtex sorting=anyt?

The following MWE \documentclass{article} \usepackage[utf8]{inputenc} \RequirePackage{filecontents} \begin{filecontents}{debug.bib} @online{physx, author = {{Nvidia Corporation}}, key = {Nvidia ...
19
votes
1answer
3k views

Biblatex, capitalization of arabic names and name prefixes

As we know, using the useprefix option, when name prefixes like von, della etc. are present in the bibliography, enables us to change name sorting as well as capitalize those prefixes using commands ...
17
votes
3answers
3k views

Bibtex reverse numbering

For my CV, I would like to reverse number publications (i.e., starting from the total number of publications all the way down to 1). Is this possible with plain LaTeX and BibTeX? This question is ...
9
votes
2answers
2k views

sorting multiple bibliographies in biblatex

I have a thesis which has two bibliographies. It includes a list of publications and a reference list. The reference list should be unsorted, or rather, sorted in order of appearance, while the list ...
13
votes
1answer
876 views

biblatex: merge the list of shorthands into the bibliography

Using biblatex, is it possible to merge the list of shorthands into the bibliography? The goal is to have a single alphabetical list of references, regardless of whether they are cited in shorthand ...
10
votes
2answers
2k views

Sort subsections alphabetically

We need to make a paper that describes a list of interfaces. The assignment however says we need to sort the interfaces alphabetically. Because this list is quite long (20+) I am looking for a way to ...
8
votes
1answer
1k views

BibLaTeX: sorting alphabetically with non-latin characters (Ś)

Biblatex indexing works very well with latin names. But when an author has foreign name (Łukasiewicz) the Ł letter is changed to \IeC {\L} and makeindex is not able to sort it well. In Polish it ...
5
votes
1answer
403 views

Trying to eliminate stack overflow during recursion

I was looking at this question, Order table by row alphabeticaly, and thought, "that OP needs some sort of bubble sorter." I had done a numerical bubble sorter here, Using LaTeX to compact a list of ...