References should be arranged first alphabetically and then further sorted chronologically if necessary.
I have been asked to sort the references. Despite I have followed the solution here, it did not work for me.
The result is not ordered by surname of the author(s).
Please consider that I cannot change the documentclass.
\documentclass[3p,times,twocolumn,authoryear]{elsarticle}
\usepackage{ecrc}
\volume{00}
\firstpage{1}
\journal{Expert Systems with Applications}
\runauth{Me et al.}
\jid{eswa}
\jnltitlelogo{Expert Systems with Applications}
\usepackage{amssymb}
\usepackage[figuresright]{rotating}
\usepackage{lipsum}
\usepackage{etoolbox}
\AtBeginDocument{%
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\MaketitleBox}{\vspace*{-20pt}\fi}{\fi}{}{}%
}
\begin{document}
\begin{frontmatter}
\dochead{}
\title{title title title}
\author{}
\address{}
\begin{abstract}
Text of abstract
\end{abstract}
\begin{keyword}
k1, k2, k3
\end{keyword}
\end{frontmatter}
\section{first section}
\citep{Feynman1963118,Dirac1953888}
%\bibliographystyle{apsrev}
%\bibliographystyle{plainnat}
%\bibliographystyle{natbib}
\bibliographystyle{elsarticle-num-names}
\bibliography{mybibfile}
\end{document}
mybibfile.bib
@article{Feynman1963118,
title = "The theory of a general quantum system interacting with a linear dissipative system",
journal = "Annals of Physics ",
volume = "24",
pages = "118--173",
year = "1963",
doi = "10.1016/0003-4916(63)90068-X",
author = "R.P Feynman and F.L {Vernon Jr.}"
}
@article{Dirac1953888,
title = "The lorentz transformation and absolute time",
journal = "Physica ",
volume = "19",
number = "1-–12",
pages = "888--896",
year = "1953",
doi = "10.1016/S0031-8914(53)80099-6",
author = "P.A.M. Dirac"
}


apacitehas conflict withelsarticleresulting into error – ar2015 Jul 09 '16 at 14:13(Smith, 2016)and not a number like[1]. – ar2015 Jul 10 '16 at 00:17elsarticle-numshould be used. By design, it can really only generate numeric-style citation call-outs. Does this instruction not apply after all and why doesn't it apply? – Mico Jul 10 '16 at 06:32model5-names? It comes very very close to the full APA6 formatting guidelines. Put differently, why have you been using theelsarticle-num-namesstyle so far? – Mico Jul 10 '16 at 07:06model5-namesand it seems to be what I needed. It also sorted my references. – ar2015 Jul 10 '16 at 07:16model5-namesis the bibliography style to use. – Mico Jul 10 '16 at 07:32