Order Bibitems Usage : python ordercitations.py filename.tex Takes as input a tex file with bibitems and returns a list of bibitems according to the occurence of \cite elements.