Reformat and sort bib file