Closed larsgw closed 6 years ago
Possibly with a sort
output option. Anyway, sort by label with some built-in sorting callback factories, i.e.:
const data = new Cite(..., ...)
const labelOrder = ['label2001a', ..., 'label2005u']
const sortCallback = Cite.sort.byLabel(labelOrder)
data.sort(sortCallback).get({
nosort: true,
...
})
or
const data = new Cite(..., ...)
const labelOrder = ['label2001a', ..., 'label2005u']
data.get({
sort: Cite.sort.byLabel(labelOrder),
...
})
With
nosort
.