Sort bib file