I want to sort chronologically a list of references using the `apalike.bst`

style, since this order seems more natural for showing in a CV. I tried to follow the approach outlined in https://tex.stackexchange.com/a/33332/56546 but without success (I really do not understand too much about `.bst`

syntax). Any help on how to conveniently hack `apalike.bst`

to do the job?

PS. I know that I can perform this switching to the `biblatex`

package, but for the moment I would like to solve the problem without it, since I am using `multibib`

.

EDIT: The kind of sorting I am looking for is: 1) by year of publication; 2) by alphabetical order of the author's surnames. I do not care about sorting by month after year in 1), but it is OK.

## Best Answer

I modified the

`apalike.bst`

entry for`bib.sort.order`

and merely swapped`sort.label`

(which had been first) with`year field.or.null sortify`

, to read asThus, with the following MWE,

I get the following result, sorted by year and, within a year, by surname:

If you wish the reverse order (chronologically descending), then the line near the end of the

`apalike.bst`

file that readsmust be changed to

Of course, this means that, within a given year, surnames will likewise be sorted in reverse order, too (alphabetically backwards).

When using the original definition, which was

the result is sorted by surname as