% print.line.length = 1000000
print.align.key = 0
print.indent = 2
print.newline = 0
print.use.tab = off
suppress.initial.newline = on
symbol.type = lower
pass.comments = on
% Manage keys manually:
preserve.keys = on
preserve.key.case = on
% BibLaTeX additions from
new.entry.type{Online}
new.entry.type{Thesis}
new.entry.type{Software}
% Sort records
sort = on
sort.macros = {off}
sort.format = { %s($type) %s(year) %s(month) {%N(author) # %N(editor)} }
❯ cat demo.bib
@Software{Singular:2018,
author = {Decker, Wolfram and Greuel, Gert-Martin and Pfister, Gerhard and Sch\"onemann, Hans},
title = {{\sc Singular} {4-1-1} --- {A} computer algebra system for polynomial computations},
year = {2018},
howpublished = {\url{http://www.singular.uni-kl.de}},
url = {http://www.singular.uni-kl.de/}
}
@Software{cgal,
author = {The CGAL Project},
title = {The Computational Geometry Algorithms Library {(CGAL)}},
url = {https://www.cgal.org/},
}
@Online{DB_COD:2018,
author = {Grazulis, S., Chateigner, D., Downs, R. T., Yokochi, A. T., Quiros, M., Lutterotti, L., Manakova, E., Butkus, J., Moeck, P. AND Le Bail},
title = {Crystallography Open Database (COD)},
date = {2003/},
url = {http://www.crystallography.net/cod/},
urldate = {2018-05-05},
annote = {395.186 entries in the COD}
}
@Article{Bernal:1960,
author = {Bernal, J. D.},
title = {{Geometry of the Structure of Monatomic Liquids}},
doi = {10.1038/185068a0},
issn = {0028-0836},
journal = {Nature},
month = {jan},
number = {4706},
pages = {68--70},
volume = {185},
year = {1960}
}
❯ bibtool -v demo.bib
--- BibTool: Trying /Users/kiryph/.bibtoolrsc
--- BibTool: Set resource print.align.key = 0
--- BibTool: Set resource print.indent = 2
--- BibTool: Set resource print.newline = 0
--- BibTool: Set resource print.use.tab = off
--- BibTool: Set resource suppress.initial.newline = on
--- BibTool: Set resource symbol.type = lower
--- BibTool: Set resource pass.comments = on
--- BibTool: Set resource preserve.keys = on
--- BibTool: Set resource preserve.key.case = on
--- BibTool: Set resource new.entry.type = Online
--- BibTool: Set resource new.entry.type = Thesis
--- BibTool: Set resource new.entry.type = Software
--- BibTool: Set resource sort = on
--- BibTool: Set resource sort.macros = off
--- BibTool: Set resource sort.format = %s($type) %N(year) month {%N(author) # %N(editor)}
--- BibTool: Trying ./demo.bib
--- BibTool: Reading demo.bib
++++--- BibTool: Done with demo.bib
@Article{Bernal:1960,
author = {Bernal, J. D.},
title = {{Geometry of the Structure of Monatomic Liquids}},
doi = {10.1038/185068a0},
issn = {0028-0836},
journal = {Nature},
month = {jan},
number = {4706},
pages = {68--70},
url = {http://www.nature.com/doifinder/10.1038/185068a0},
volume = {185},
year = {1960}
}
@Software{Singular:2018,
author = {Decker, Wolfram and Greuel, Gert-Martin and Pfister,
Gerhard and Sch\"onemann, Hans},
title = {{\sc Singular} {4-1-1} --- {A} computer algebra system for
polynomial computations},
year = {2018},
howpublished = {\url{http://www.singular.uni-kl.de}},
url = {http://www.singular.uni-kl.de/}
}
@Software{cgal,
author = {The CGAL Project},
title = {The Computational Geometry Algorithms Library {(CGAL)}},
url = {https://www.cgal.org/}
}
@Online{DB_COD:2018,
author = {Grazulis, S., Chateigner, D., Downs, R. T., Yokochi, A.
T., Quiros, M., Lutterotti, L., Manakova, E., Butkus, J.,
Moeck, P. AND Le Bail},
title = {Crystallography Open Database (COD)},
date = {2003/},
url = {http://www.crystallography.net/cod/},
urldate = {2018-05-05},
annote = {395.186 entries in the COD}
}
IMHO it looks like bibtool cannot sort the new entry types. They are treated as the same type and sorted by the other criteria.