# Bibliography sorting issue

I would like my bibliography sorted by author. I don't know why it is not working in my current document. Can you help me? I am new in LaTeX. Thanks, Pablo.

documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{babelbib}
\usepackage{csquotes}

\usepackage[authoryear, round, sort]{natbib}

\   usepackage{bookmark}

\usepackage{amssymb}
\setcounter{tocdepth}{3}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{float}

\usepackage[spanish]{babel}
\renewcommand{\baselinestretch}{1.4}
\usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}

\usepackage{chngcntr}
\counterwithin{figure}{subsection}
\counterwithin{table}{section}

\renewcommand\thefigure{%
\ifnum\value{subsection}=0{\thesection.\arabic{figure}}%
\else{\thesubsection.\arabic{figure}}\fi}

\usepackage{footnote}
\makesavenoteenv{tabular}

\pagestyle{plain}
\usepackage{parskip}
\usepackage{hhline}
\usepackage{caption}
\usepackage{booktabs}

\title{XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}

\author{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA}

\date{\vspace{-5ex}}

\begin{document}

\section{Introduction}

\cite{Chung16}
\citep{Devereux15}

\bibliographystyle{myplainnat}
\nocite{*}
\bibliography{biblio.bib}

\end{document}


Examples of biblio entries:

@Article{Chung16,
author={Chung, Wanyu},
title={\textbf{Imported inputs and invoicing currency choice: Theory and         evidence from UK transaction data}},
journal={Journal of International Economics},
year=2016,
volume={99},
number={C},
pages={237-250},
url={https://ideas.repec.org/a/eee/inecon/v99y2016icp237-250.html}
}

@techreport{Devereux15,
title = {\textbf{Exchange Rate Pass-Through, Currency of Invoicing and     Market Share}},
author = "Michael B. Devereux and Ben Tomlin and Wei Dong",
institution = "National Bureau of Economic Research",
type = "Working Paper",
series = "Working Paper Series",
number = "21413",
year = "2015",
month = "July",
URL = "http://www.nber.org/papers/w21413",
}

• Which sorting have you defined in \bibliographystyle{myplainnat}? Sep 26 '17 at 15:57
• Assuming myplainnat has the same sorting setup as plainnat, your code will deliver a formatted bibliography with entries sorted by the surnames of the respective first-named authors.
– Mico
Sep 26 '17 at 16:19

\bibliographystyle{myplainnat}