I have read questions about this, and people say that it is just to include the natbib package and the plainnat style. For some reason my references will not sort alphabetically. Any help on this would be much appreciated! I am really new to LaTeX ...
My commands:
\documentclass[a4paper,norsk]{article}
\usepackage{amstext}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[comma,authoryear]{natbib}
\usepackage[norsk]{babel}
\usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}
\pagestyle{plain}
\begin{document}
\begin{thebibliography}{56}
\end{thebibliography}
\printindex
\bibliographystyle{plainnat}
\end{document}
{thebibliography}environment. You will save yourself time by creating a bib file with your references even if you don't use it again. See LaTeX and bibliography management tools. – Alan Munn Feb 13 '13 at 14:36