This project is read-only.

sort alphabetically, number as in library

Mar 15, 2012 at 7:25 PM

Dear all,


I've tried to achieve this on my own, but got a bit (to be honest - a lot) confused with BibOrder / RefOrder so I am asking for your help.

What I am trying to do is to create a stylesheet similar to IEEE-Alphabetical Order. However, I would like the numbering to be as per alphabetical order, not per order of appearance. It is hard for me to explain this properly with words, so let me show you what I mean:

text text text [2] text text text [1] text text text [3]


[1] Adams; ....

[2] Brown; ...

[3] Walther;...

Thus, the first citation in the text does not have to be [1], but depends on the position in the bibliography.

I already achieved an alphabetical order in tbe bibliography, but somehow the numbers are still as per appearance in the text. Can you help me with that?

Thank you a lot, this stylesheet already saved me a lot of trouble,



Mar 15, 2012 at 10:23 PM

In the IEEE - Alphabetical Order the numbers are per alphabetical order (hence the name).

Your in-text citation should be of the format %BibOrder%. Note that you can only generate the value for BibOrder by using the Extender program. Word is not capable by itself to calculate the value as the in-text citations and bibliography are not aware of each other.

Personally I use %BibOrder|"BO"%. That way it is easy to see if you ran the Extender program or not. If you haven't, the document will just show 'BO' for your in-text citations. Only after you ran the program, a value for BibOrder is available.

Make it easy on yourself and start from IEEE - Alphabetical Order. Just take a copy of the xsl, change the name, and then start changing whatever formatting you want.

Mar 17, 2012 at 2:37 AM

Hi yves!

Thanks a lot for the quick reply! Indeed, you are right, I don't know why the bibliography was not shown correctly the first time I tried IEEE-AO...

Anyway, I adjusted the IEEE-skript with the only alteration that I wanted the chapter of the books displayed (since all my citations are booksections, but I didn't find that option at first, I saved the chapter in the "page" variable. Thus, I simply changed the p. pp. to ch. - not an elegant solution, I know, but I just wanted to make it work). However, I rechecked the bibliography, and sometimes (when the same book is cited more than once) I get this:


Willborn, Walter, Audit Standards, 1st ed. Milwaukee: ASQC Quality Press, 1987, ch. 2.


Willborn, Walter, Audit Standards, 1st ed. Milwaukee: ASQC Quality Press, 1987, ch. 3.


Willborn, Walter, Audit Standards, 1st ed. Milwaukee: ASQC Quality Press, 1987, ch. 6.


Willborn, Walter, Audit Standards, 1st ed. Milwaukee: ASQC Quality Press, 1987, ch. 7.

Is there any simple explanation, why this happens?

Thanks again, and have a nice weekend,


Mar 21, 2012 at 9:25 PM


Does no one have any idea?

Help would be great,




Mar 21, 2012 at 10:37 PM

The sortkey element decides how your entries are sorted in your bibliography. If two entries generate the same sortkey, there is no way to tell in which order they will appear in your bibliography since those entries will be the same for the sorting algorithm. You will have to extend the format string of the sortkey to include the chapter / page number to make the entries in your example look different to the sorting algorithm. The easiest way to achieve this is probably using the same format string for the bibliography entry and the sortkey.

Apr 5, 2012 at 12:36 PM

Dear yves,

thank you for your reply again! After many struggles I started over with your file and now it works. This way, the above problem was solved. But anyway, as soon as there are chapters of a higher number than nine, problems occure. The sortkey sorts it as follows:


This is only a small problem and not so important, but can I change this?

Thanks again and happy easter,