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
0 votes
1 answer
28 views

Bibliography issues with biblatex

I'm a latex beginner and am currently trying to configure my bibliography. There are several issues: It sorts nty but I have specified nyt The author-name-sorting is wrong: it should be family, given ...
user avatar
0 votes
0 answers
34 views

Organize bibliography in (different) alphabetical order [closed]

I have, more or less, the following code: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage[backend=biber, style=alphabetic, maxbibnames=9]{biblatex} %\...
user avatar
  • 143
0 votes
0 answers
21 views

How to alphabetize Reference list entries by the last names of the first author of each work

I am using natbib package. I want my reference list to be sorted by alphabetical order. Currently using Springer latex template.
user avatar
0 votes
1 answer
40 views

Merge many bibtex files and sort by year

I would like to merge many bibtex files and sort the combined file by year. I used \bibliography to merge but when I want it to order by year, it ordered by input file. So, each input file is sorted ...
user avatar
  • 103
1 vote
0 answers
42 views

How to create an alphabetical attachment list that supports unicode characters?

I would like to be able to create a list of attachments similar to the list of figures or tables. However, since it makes little sense to sort the attachments by page number, I would like to sort them ...
user avatar
  • 281
0 votes
0 answers
22 views

Custom Alphabetical Order for Index (Turkish)

I need your help for building a proper index for a book in Turkish language. I am using \usepackage{makeidx} to build my index, which produces the following image as a sample. Here as you may see, ...
user avatar
  • 2,297
2 votes
1 answer
55 views

\DeclareSortingTemplate: not working as expected

In the following MWE, I expect reference "B" to appear before "A" in the reference list, because sortyear should take priority over year. But I can't get that to happen after much ...
user avatar
  • 2,503
1 vote
1 answer
22 views

Bibliography style which sorts by year irrespective of authors, numerical citations

I'm looking for a BST style where all entries will be sorted by year, irrespective of authors, and would produce numerical citations, e.g. for the bibliography list [1] Smith, ..., 2000 [2] Smith &...
user avatar
  • 23
0 votes
0 answers
14 views

APA reference sorting with Babel

My supervisor just asked me to change the referencing to APA style. Although I've already done that but I'm having trouble sorting them. Seems like Overleaf doesn't do the sorting automatically. My ...
user avatar
0 votes
0 answers
14 views

Y-Value Sorted Bar Chart with Z-Value Depending Width

I would like to create a bar chart from data points that sorts the bars according to their y-value and whose bar width depends on another z-value. The result is a so-called merit order. I could ...
user avatar
  • 13
0 votes
1 answer
40 views

Sorting strings containing Cyrillic and Latin characters at the same time

I have a problem with automatic sorting of lines containing information about authors of several articles, including Russian surname, first name and patronymic, other info, ORCID and e-mail. This ...
user avatar
1 vote
1 answer
26 views

Easiest way to get a date-of-appearance sort order for an alpha-style bibliography?

In a document class of mine, I use bibtex, and set up two bibliographies. One of sources actually cited by the document, and another one with extra references, printed separately. I want the style of ...
user avatar
  • 11.3k
0 votes
0 answers
60 views

biblatex citations unsorted in refcontext with sorting=ydnt

sortcites/numeric-comp doesn't properly sort and compress citations in a refcontext with sorting=ydnt. I would like the example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[backend=...
user avatar
  • 26
0 votes
1 answer
14 views

Sorting bibliography by Journaltitle

I use Biblatex. I'd like to sort my bibliography by journaltitle (and then by date, or by author): is there a package or a bibliography style that does it?
user avatar
0 votes
0 answers
34 views

Sorting bibliography by order of appearance in main document. using a .bib file [duplicate]

I'm having trouble getting my bibliography sorted so that nr. 1 is the first one referenced in the document. the bibliography list it self is sorted by numbers, but I want to change it so that it ...
user avatar
5 votes
2 answers
70 views

Order of Entries in Index

I am working on an index of first lines for a poetry book and would like the punctuation of the lines NOT to affect the order in which they appear in the index. For example: Now entries appear in the ...
user avatar
0 votes
0 answers
20 views

Sorting Nomenclature

I am trying to sort my Nomenclature into strings, Numbers and symbols using the code \usepackage [stdsubgroups]{nomencl} in my LaTeX preamble but when I try to view my document I get the error below ...
user avatar
  • 1
1 vote
1 answer
42 views

Sorting Contents of Macro (Not Literal)

In How to sort an alphanumeric list , there is a nice and short sort facility, which I am reproducing here: %% from https://tex.stackexchange.com/questions/6988/how-to-sort-an-alphanumeric-list \...
user avatar
  • 3,271
0 votes
0 answers
22 views

My bib items are getting sorted in the first name of the author, but I want this with the second name

Please see below, a snapshot of my reference list: References Najla Aissaoui, Mohamed Haouari, and Elkafi Hassini. Supplier selection and order lot sizingmodeling: A review.Computers & operations ...
user avatar
1 vote
0 answers
51 views

list of symbols - separating greek letters

I am using a template which includes a list of symbols based on the glossaries package. The package is called as follows: \RequirePackage[nonumberlist,acronym,symbols,shortcuts,toc,translate=babel]{...
user avatar
  • 21
1 vote
1 answer
240 views

Biblatex citations don't go away even after removing all references

That, and the order of the citations persists even if I write sorting=none. I am using this template, which uses Biblatex. I have the following command in the preamble: \usepackage[sorting=none,...
user avatar
  • 135
0 votes
0 answers
18 views

Sorting within glossaries (list of symbols)

I have an issue regarding the sorting of a list of symbols using the glossaries package and makeindex: With the current settings, the greek numbers are sorted above the latin ones as the (e.g.) sort ...
user avatar
  • 21
0 votes
0 answers
18 views

Is there a sort&compress feature in babelbib?

I am currently writing my Ph.D. thesis in Spanish and using babelbib. Is there a "sort&compress" feature in babelbib like there is in natbib?
user avatar
0 votes
0 answers
29 views

sorting with more than one criteria using datatooltk command line

In the section "Sorting Data" found in https://www.dickimaw-books.com/latex/admin/html/sortdata.shtml (from datatool package by Nicola L. C. Talbot), it was explained that we can have more ...
user avatar
0 votes
0 answers
22 views

Sorting and range compression for internal references

Both cite and amsrefs offer sorting and range compression, so that I can carelessly cite a list of references that resolves to, say, [3, 5, 1, 4] and leave those packages to produce [1, 3–5]. Is there ...
user avatar
  • 1,128
2 votes
1 answer
38 views

Sorting bibliography by shorttitle?

I'm writing a report that cites extensive primary sources without an author field. To avoid verbosity, I make sure the "shorttitle" field is what gets printed in the text. Normally it's very ...
user avatar
  • 135
1 vote
2 answers
45 views

Sort a clist and calculating the sign of the sorting permutation

I want to sort a LaTeX3 clist and, at the same time, calculate the sign of the sorting permutation, which is (-n)^s where s is the number of swaps required to sort the list. For example, if I start ...
user avatar
1 vote
0 answers
22 views

Bibliography does not sort correctly according to nyt [duplicate]

I am trying to cite 3 works of a common author and I expect that the will be sorted by Name,Year,Title, i.e, sorting=nyt. However, I do not get that result obviously as you can see: I am not sure it ...
user avatar
  • 13
0 votes
1 answer
25 views

Sort numbers in order to use them for a sample list or convert a list in an array and back

I've tried multiple times to get help for little parts of my project but I can't make it work, so here I am with a bigger chunk. My problem: I generate a list of numbers for points where I want my ...
user avatar
  • 1,100
1 vote
2 answers
18 views

arraysort MWE, Package arraysort Error: Cannot sort by undefined comparator arraysortcompare str

Hello can you help me produce a MWE for arraysort ? I put in a minimal document the code from the documentation of Arraysort Package : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
  • 1,100
0 votes
1 answer
87 views

How to sort a list indexed by figure numbers?

I would like to sort a list indexed with figure references by the item numbers. My MWE is the following: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \usepackage{duckuments} \...
user avatar
  • 512
1 vote
0 answers
83 views

How to sort \nocite entries based on year

I am currently organizing my CV and would like to group my publications as published, under review and ongoing work. I use a single .bib file and add the papers one by one under each section. I would ...
user avatar
  • 268
0 votes
1 answer
16 views

Text alignment in a \sortedlist environment

I'm using the following command : \documentclass[10pt]{report} \usepackage{datatool} \usepackage{enumerate} \newcommand{\sortitem}[2]{% \DTLnewrow{list}% \DTLnewdbentry{list}{label}{#1}% \...
user avatar
1 vote
1 answer
70 views

Sort a list of numbers

In my exemple I want to put two lists together, and order them \def\Wmax{10^8} \def\Wmin{.01} \def\mySamplLst{\Wmin} \xdef\mySamplNb{10} \pgfmathparseFPU{(\Wmax/\Wmin)^(1/\mySamplNb)} \xdef\...
user avatar
  • 1,100
3 votes
1 answer
70 views

Sort entries under abbreviations and symbols according to their section

How do I sort the entries corresponding to each section of my document under abbreviations and symbols? In other words, I want a structure like this: Abbreviations Section 1 Section 2 ... Last section ...
user avatar
3 votes
1 answer
105 views

Add Insertion Sort's costs in lstlisting

I'm trying to add the costs for each part of the Insertion Sort (that are marked in blue in the picture below) At the moment the code I wrote is this: \begin{lstlisting}[escapeinside=`'] ...
user avatar
3 votes
0 answers
75 views

index (xindy): How does one customize alphabetical order? [closed]

I'm trying to index all the words from my old conlang, whose alphabetical order goes aæbcçdðefghijklɬłnñŋməoœœ̄pqrsßtťþuůvwxyz instead of the regular abcdefghijklmnopqrstuvwxyz we're all familiar with....
user avatar
1 vote
0 answers
29 views

Nomenclature not working with automatic counter for entry sequence

I have a nomenclature for my file and I was trying to override the default sorting for the nomencl package using a custom counter, indnom but it's not working. I want them in the order: A, Z, G, B ...
user avatar
2 votes
1 answer
22 views

How to sort multiple numeric-style citaton call-outs?

I am new to Latex. I have finished writing my document. Now I am trying to sort the citations in the main document. Is there a command to do this automatically? For example: I want to have it like ...
user avatar
  • 95
1 vote
1 answer
40 views

Repeat items in Appendix in Alphabetical order

I would like to create a command (or environment) that takes a name, prints the contents, and repeats the contents in the appendix, ordered alphabetically by the name. For example: \monkeyInfo{tamarin}...
user avatar
  • 331
0 votes
0 answers
29 views

index sort accented letters after normal letters (after "Z")! How to put them in a more logical position?

index sort accented letters after normal letters (after "Z")! Is there a way to put them in a more logical position? For example "àncora" is put after "Zorro", instead of ...
user avatar
0 votes
1 answer
56 views

Ordering Names with Prefixes in Biblatex Bibliography

This is a question which appears to pop up multiple times, but I am never quite able to get the desired answer from other questions. I am using biblatex+biber. I would like to organise names such as ...
user avatar
  • 1,147
1 vote
0 answers
29 views

Sort bibliography by date with BibTeX [duplicate]

Is it possible to make BibTeX sort bibliography entries by date? The best I have found to date is to add a \nocite command at the top of my document listing all citations in the order I want them. ...
user avatar
1 vote
1 answer
48 views

the correct order Acronyms

Hey how can I get the correct order of the Acronyms in the same order in the Dokument \input{Acronyms}. Obviously he does automatic sorting
user avatar
  • 23
1 vote
1 answer
115 views

Sorting problem in cleanthesis

I need your help about the order of citations of bibliography in cleanthesis. Specifically, I would like to show citations in the text sorted by year (e.g., BBB1990, CCC1995, AAA2000), but at the same ...
user avatar
  • 11
0 votes
1 answer
92 views

Abbreviation list not sorted alphabetically

I have this list of abbreviations and everything works fine except for pcrs and ip3. I tried to change \ce{IP3} to ip3 but it doesn't change place. I also tried to change or erase pcrs but I get an ...
user avatar
1 vote
1 answer
140 views

Print bibliography in the order as entered in the bib file without sorting

I am using natbib agsm style. I would like to have bibliographies printed as entered in the bib file (without sorting) which is divided as Article, Books etc. How should I modify the code? the code is ...
user avatar
4 votes
1 answer
141 views

Sorting a list of randomly generated numbers

This is a part two of a question I asked a few days ago and was answered rather spectacularly by user egreg, which you can find here. I'm now looking to take part of the LaTeX provided to me, and ...
user avatar
  • 155
4 votes
1 answer
65 views

Natbib sorting with approximative (circa) years

The context is that I have to cite some old sources (music manuscripts) whose date is only approximative. The simple solution is to have this as "ca. 1710" or whatever is the approximative ...
user avatar
  • 75
1 vote
0 answers
27 views

How can I modify the .bbl generated when I use the cleanthesis template?

I am using the cleanthesis template. For the bibliography, I use the options: bibsys=bibtex bibstyle=ieee, bibsorting=nyt, However, the references are not sorted by name. How can I sort them? Or, how ...
user avatar
  • 11

1
2 3 4 5
12