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
3
votes
2answers
52 views

Create unique sorted list

I am trying to create a simple function that takes in some lowercase letters a,b,r,e,r etc removes any duplicate letters, and sort them. Then I want to list the output in a list Input: \...
0
votes
0answers
24 views

Dictionary template how to arrange by alphabetical order

I am using Overleaf as an editor and came across their dictionary template. When I write my own entries they don't get sorted by alphabetical order as a dictionary should be. Q: How could one sort \...
0
votes
1answer
29 views

Having 1961/62 in the year field rather than 1961

This is the fourth question on the annotated bibliography project we are working on (1, 2, 3). This was originally a part of the third question but as moewe suggested, I'm making a new question for it....
0
votes
1answer
22 views

Ordering references manually using Jabref

I have several records in contained in a bibliographic library managed through Jabref. But, I want to show the records in LaTeX, Texstudio, PDF based on the order that I specify. In other words, I ...
0
votes
0answers
37 views

reverse numbering with Bibtex and amsart document class

I am trying to do reverse numbering of a bibliography with bibtex (not biblatex) with the amsart document class. if I try to use previously suggested solutions then they produce errors. For example ...
4
votes
1answer
32 views

Why does biblatex-chicago sort articles without an author by journaltitle rather than title?

According to the documentation for biblatex-chicago (notes), articles with no author field should be sorted alphabetically by title in the bibliography, except when the journaltitle's subtype is ...
0
votes
0answers
19 views

Sort selected references within brackets in main text with Lyx and JabRef

I'm using Lyx and JabRef and it appears that when citing multiple references within a bracket the default sorting within the brackets is alphabetically. However, I would like to sort them by their ...
2
votes
1answer
63 views

biblatex: automatically abbreviate year ranges

For consistency's sake I need to abbreviate all number-ranges in my document. While biblatex can easily be made to abbreviate page ranges the equivalent command for the year ranges breaks compilation ...
2
votes
1answer
63 views

How to produce an alphabetical list of elements [tcolorboxes]

I am compiling a private song book using a tcolorbox for each song. The tcolorbox package provides a nice interface for automatic numbering and creation of a list-of-tcolorboxes and even integrating ...
1
vote
1answer
36 views

Sort bibliography by eprint

I would like to sort the bibliography by eprint but it does not work: \documentclass{article} \usepackage{filecontents} \usepackage[backend=biber]{biblatex} \DeclareSortingTemplate{eprint}{ \...
1
vote
1answer
63 views

BibLaTeX - Sort bibliography by firstpage

I need to create a bibliography where journal articles within a volume and issue are sorted by the first page number. I can use \mkfirstpage{pages} to print the first page of the page range but cannot ...
1
vote
0answers
59 views

sorting text file in plain TeX

I have seen Latex sort macros (for an index, which is precisely what I want, the index having several thousand entries); but I haven't seen one in plain (or AmS-TeX, for that matter; either is OK). ...
0
votes
1answer
54 views

In-text citation sorted according to publication year with apalike bibliography style

I am using the natbib bibtex package with the [authoryear,compress] options and the bibliographystyle apalike. Is it possible to modify the natbib package options so that in-text citations are ordered ...
1
vote
0answers
40 views

Custom BST (based on apalike) with following sorting mechanism: (1) First author only, (2) Year, (3) All (other) authors, (4) Title

Following https://tex.stackexchange.com/a/484079/ I have created a custom BST, based on the apalike bibliographystyle of the natbib package in bibtex. This custom BST orders references in the ...
2
votes
1answer
269 views

Apalike but sort by last name of first author and year

I would like to use the natbib package in bibtex with the bibliographystyle apalike with a specific type of author-year ordering in the bibliography. I want items to generally be sorted/ordered ...
1
vote
1answer
19 views

Index entries sorted by text of macro instead of value

A related question was asked here seven years ago, but I couldn't manage to make that solution work in my case. I am using macros in various instances of my text to have a shorthand for often used ...
1
vote
1answer
52 views

Apply a numeric bubble-sort to output strings, which are specified by names/codes

Edit: My objective is to sort a group of output strings, which are specified through names/codes. There are effectively 3 components, the 'memorable codes' (names like Xenia, Alex, etc), the '...
0
votes
0answers
56 views

Sort bibliography with the order of appearance into .bib file (EDITED)

I work with natbib and \bibliographystyle{abstract}. I use this style because the ordering is done with respect to the key. Is it possible achieve a sorting with respect the order of appearance into ...
1
vote
1answer
80 views

Keep sorting local to groups for symbols in glossaries-extra with bib2gls

Consider this example: \documentclass{article} \usepackage[record,style=alttreegroup,nomain,symbols]{glossaries-extra} \begin{filecontents}{symbols.bib} @symbol{alpha, name = {\ensuremath{\alpha}}, ...
0
votes
1answer
46 views

Xindy seems to ignore sort-rules in custom .xdy file

So I am trying the change the way xindy is sorting umlauts in an index file by prescribing custom sort-rules. This is the myfile.xdy that I use: (require "lang/german/duden-utf8-lang.xdy") (sort-...
1
vote
1answer
57 views

natbib same author same year with a & b references wrong order

I'm working with the natbib package and the aa bibliography style for the Astronomy & Astrophysics journal. One author wrote two papers in the same year. The problem is with how the references and ...
2
votes
2answers
37 views

Automatic sorting of environments by parameters (e.g. by date)

I desire for some sort of easy system for manipulating "sections" or environments based on additional data such as dates. I did a preliminary google search and couldn't come up with anything because I ...
0
votes
0answers
23 views

Sorting entries by page number in a single index (out of multiple indices) made with imakeidx

I am trying to make two indices with imakeidx: an index of terms and an index of symbols. Since I am using mathematical symbols, I would like the symbols index to be sorted by page number rather than "...
3
votes
2answers
155 views

Sort list of elements created from a custom command

In order to have this result I wrote this command: \newlength{\boldAcrwidth} \setlength{\boldAcrwidth}{2cm} \NewDocumentCommand{\boldAcr}{m >{\SplitList{ }}m}{% \makebox[\boldAcrwidth][l]{\...
0
votes
0answers
12 views

Sorting acronyms that start with a number? [duplicate]

In my thesis I have an acronym that start with the number 4. In the list of abbreviations it gets sorted under the F for four. How can I sort it so it comes in the list before A? \documentclass[...
0
votes
0answers
22 views

Nomenclature sorting problem: it starts sorting again in a new page

I have the nomenclature sorted in an alphabetical order, but it starts over on the next page. See attached picture. Does anyone know how I can make so it doesn't start over when after a page shift? ...
1
vote
1answer
65 views

Sort all citations from one year automatically under a heading with the year number

I would like to ensure that all entries in the bibliography are sorted by year. In addition, a separate heading should be generated for each year. The whole should run as automatically as possible, i....
1
vote
1answer
31 views

Automatically refer to n-th author

I'm writing a paper with many people, and to be honest, at this point I'm not even sure who will be listed as an author in the final version. In the text, I would like to write things like "the forty-...
1
vote
1answer
121 views

Unsorted bibliography but locally sorted using biblatex

I'm trying to solve a rather odd sorting of the bibliography. I want to have the numeric citations appear in order of citation. However, I want to sort the group of references by another style. I ...
4
votes
1answer
44 views

Sort symbol index by page occurence

SE, I have a problem ordering items in symbol index. MWE: \documentclass[oneside,12pt,a4paper]{memoir} \renewcommand{\baselinestretch}{1.15} \let\memoldbibsection\bibsection \let\bibsection\relax %...
2
votes
1answer
47 views

Order items using their references

I try to sort enumerated lists in latex. All I found is how to sort items by their ordinal number (see Order items in enumerate environment automatically): \documentclass{article} \usepackage{pgffor}...
1
vote
0answers
66 views

Sort grouped citations on unsorted style with bibtex [closed]

I'm trying to get sorted citations when they are in a group, that is, within a \cite{}, but unsorted or in order of appearance when they are called from different \cite macros. Basically, what I want ...
0
votes
1answer
38 views

How to subdivide and group a bibliography by year of publication?

Consider this MWE \documentclass{article} \usepackage[style=archaeologie]{biblatex} \addbibresource{biblatex-examples.bib} \newcounter{BIBnumberYEARcount} \setcounter{BIBnumberYEARcount}{1} \...
1
vote
0answers
41 views

Sorting a description [duplicate]

I want to sort a description list in an alphabetical order. \documentclass{article} \begin{document} \begin{description} \item[bb] \hfill \\ something bb \item[aa] \hfill \\ something aa \item[...
1
vote
1answer
82 views

Two different bibliographies with different styles and sortings, Vol.2

The answer of moewe appearing in this question is almost what I want to achieve: one bibliography containing online references which are numbered and sorted in order of appearence (nothing to change ...
0
votes
0answers
26 views

Regex replacement with lowercase monthnames for biblatex/biber to eliminate the warning “month not integer…” [duplicate]

I had already asked a nearly identical question here I am using biblatex with biber from TL2018 for my PhD thesis. Due to various reasons, I am forced to use Mendeley for citation managements and ...
1
vote
0answers
17 views

How to change the sorting of the last author name in the bibliography [duplicate]

How is it possible to change the name sorting for every last author in the bibliography? In the following WME it should be ... and N. Tesla instead of ... and Tesla, N. I'm using biblatex with ...
0
votes
1answer
64 views

Ordering an index lexicographically

I need to use a custom sort order (T, K, m, C, P, M, N, SA) and that's implemented in the lua function Bsort below. When I generate two indexes of the same length this works e.g. in the attached the ...
0
votes
0answers
19 views

BibLaTeX doesn't sort my bib (using a custom style) [duplicate]

Problem: I want to sort my bib entries by author (a...z), year (ascending), month (ascending), day (ascending), title (a...z). I customized my bib style with the help of @moewe and I think we broke ...
4
votes
1answer
170 views

Sorting biblatex bibliography by last name beginning with “Al-”

I would like to sort my biblatex bibliography by last name. Unfortunately, names beginning with "Al-" are not sorted as expected. MWE: \documentclass{article} \usepackage[ backend=biber, ...
3
votes
1answer
88 views

Sorting a list of items with underscores

I am trying to alphabetically sort a bunch of items (for a coding base), and naturally many of the method names have underscores. Normally I can sort any number of items in LaTeX using a sortedlist ...
4
votes
1answer
438 views

Regex replacement for biblatex/biber to eliminate the warning “month not integer…”

I am using biblatex with biber from TL2018 for my PhD thesis. Due to various reasons, I am forced to use Mendeley for citation managements and cannot switch to another tool now. Mendeley is capable of ...
1
vote
0answers
60 views

Disable sorting in texindy

I'm trying to establish a workflow for a LaTeX project and haven't figured out how to use makeidx or imakeidx packages to sort UTF-8 encoded index by languages not covered in the section supported ...
1
vote
1answer
97 views

glossaries-extra autoindex, manual sorting of entry

(Kind of a follow up question to this one.) The following example contains a definition of an abbreviation which requires some extra care: [Śatika-]Kālajñāna is supposed to be sorted, both in the list ...
1
vote
1answer
86 views

Problem with sorting, alpha-style bibliography

When I compile this MWE: \documentclass[numbers=noendperiod, fontsize=11pt, twoside, a4paper]{scrbook} \usepackage[backend=biber, autolang=hyphen, ...
0
votes
0answers
273 views

Sorting symbols in 'List of Symbols'

Is there a way I can sort the symbols (in some logical order) automatically in my LaTeX draft? Presently they come in the order I am defining them. \clearpage % Start a new page \lhead{\emph{Symbols}}...
5
votes
1answer
63 views

Biblatex, sorting references in a specific manner

I need to order my bibliography on alphabetical order. However, the works headed by the same first author must be ordered as follows: 1º Works with one authors, in chronological order. 2º Works with ...
2
votes
1answer
109 views

Biblatex reference sorting in same-first author, different-year entries

I'm using the biblatex bibliography package and I need the references to be sorted first by name, and references with the same first author to be sorted then by ascending year. In my preamble, the ...
5
votes
1answer
101 views

Biblatex: sorting by title if no author

I would like to sort my bibliography by title in the case there is no author but just the editor. Now it is sorting by editor. So in my example I would like to have first "Concilium Foroiuliense" and ...
1
vote
1answer
91 views

How to add custom letter groups to an index, e.g. for greek letters or brackets?

I have an index of symbols made using makeindex: \documentclass{article} \usepackage{makeidx} \makeindex \begin{document} Text \index{sin@$\sin$} % just some examples of index entries \index{...