# Using LyX bibliography sorting order is not working

I am new to Lyx and have spent the better part of a week getting things to work correctly. I am stumped how to fix the problem of the bibliography sorting order not working.

I have a LyX file like this:

I insert a citation so now I have:

Mary had a little lamb [1].

I then realize that I needed to cite Mary so I insert again:

Mary [2] had a little lamb [1].

No matter what I do in settings etc, I can not get it to print:

Mary [1] had a little lamb [2].

My set up:

LyX version 2.0.4 MiKTex 2.9 I am using Zotero in conjunction with LyX to build BibTeX database. I have tried different styles: `unsrt`, `plain`, `ieeter`

LyXserverPipe: \.\pipe\lyxpipe

I am totally tired of trying to get this up and working. I am sure the effort will be repaid, but what a pain.

Any help is appreciated.

-

## migrated from stackoverflow.comOct 13 '12 at 21:42

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. The style that should allow to get what you want is `unsrt`. –  egreg Oct 13 '12 at 21:46
I’m quite sure, this is not MiKTeX related. –  Speravir Nov 13 '12 at 2:50
Aren’t there auxiliary files generated? I would first try to delete them. –  Speravir Nov 13 '12 at 2:55