# Possible to change sort order in natbib?

I have played a little with LaTeX lately and I really like it, it makes the document look top professional and makes structuring a report easy.

I am currently using it for a big assignment with lots of references, but I can't get natbib to work as I want.

What it does now is to sort by appearance which works, but I would like to have it categorized as well. I really hope this is possible, as it is a requirement.

As requested, I will try to provide a MWE

\documentclass[12pt,a4paper,danish,oneside,openany]{memoir}

\usepackage[round]{natbib}
\usepackage[utf8]{inputenc}
\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc} % fonte (output)
\usepackage{lmodern} % vektor fonte

\begin{document}
% include abstract
\tableofcontents*
% include other pages

\bibliography{./biblio/ipr}
\bibliographystyle{unsrt}

% include appendix
\end{document}


and a page could be

\section{Don't be evil}

This is the first paragraph from a website.\footnote{\cite{pnp}}

This is a second paragraph with text from a book.\footnote{\cite[Part 3, chap. 2]{itp-2}}


In the footnote it looks like

1[1]
2[2, Part 3, chap. 2]

pnp is a website and itp-2 is a book, defined as @misc and @book in my .bib file.

@book{itp-2,
Author = {Steven Levy},
Edition = {1},
Publisher = {Simon \& Schuster},
Title = {In The Plex},
Year = {2011}
}

@misc{pnp,
author = {Laszlo Bock},
title = {{Passion, Not Perks}},
year = {2011},
note = "Bes{\o}gt den 19/12/2012"
}


Is it possible to sort the book first, even though the website appears first?

This is an example of how I want it to order my references.

Books
[4] Steven Levy. In The Plex. Simon & Schuster, 1 edition, 2011.

Web Articles
[1] Mette Morsing. Corporate Branding Basics. http: //www.kommunikationsforum.dk/artikler/ corporate-branding-basics/, 2011. Besøgt den 17/12/2012.

[3] Vlad Savov. The benefits of working at Google continue af- ter death. http://www.theverge.com/2012/8/10/3232810/ google-employees-life-insurance, 2012.

Websites
[2] Ebbe Berg. Branding. http://www.berg-marketing.dk/ branding.htm, 2012.

The numbers is the order of appearance in the text, but it is sorted after books first, then web articles and at last websites. To define what is a web article and what is a website, I believe it is possible to choose an appropriate style?

I am not very good at StackExchange layout, so I hope someone can change it to look more like a real LaTeX example. Anyway, I hope this is possible and if you know how to, it would be a great help!

-
Welcome to TeX.SE! – Vivi Dec 20 '12 at 1:04
Are you using biblatex or bibtex? You used both tags... – Vivi Dec 20 '12 at 1:05
I would suggest to add a minimal working example (MWE) to show us what you have done until now. It also shows us which document class you use, biblatex or not, how you call your bibliography etc. This all helps us to help you ... – Kurt Dec 20 '12 at 1:34
I am not really sure whether I use BibLaTeX or just BibTeX. I am new to LaTeX so I started out with a template and did some very minor tweaks to it. – ninjaboi21 Dec 20 '12 at 11:44
I suggest you take a look at the discussion, in tex.ac.uk/cgi-bin/texfaq2html?label=multbib, of the multibbl, multibib, and splitbib packages. Separately, since you're using natbib, you may want to use unsrtnat rather than unsrt as your bibliography style. – Mico Dec 20 '12 at 13:13

• multibib
• multibbl
• splitbib
However the customizing of the methods above are limited. To become more flexible I recommend the package biblatex. You will find a lot of examples about splitting bibliographies with biblatex. Here are some: