bibble.fields.field_sorter

Type Aliases

Entry

Classes

FieldSorter

Sort the entries of a field

Module Contents

bibble.fields.field_sorter.Entry: TypeAlias = model.Entry
class bibble.fields.field_sorter.FieldSorter(
*,
first=None,
last=None,
**kwargs,
)[source]

Bases: bibble.util.middlecore.IdenBlockMiddleware

Sort the entries of a field firsts are exact matches that go at the front. lasts are a list of patterns to match on

Parameters:
field_sort_key(field) <Unknown>[source]
Parameters:

field (Field)

Return type:

str | tuple

on_write() <Unknown>[source]
transform_Entry(entry, library) <Unknown>[source]
Parameters:
  • entry (Entry)

  • library (bibtexparser.library.Library)

Return type:

list[Entry]

_first_defaults: ClassVar[list[str]] = []
_firsts = []
_last_defaults: ClassVar[list[str]] = []
_lasts = []
_stem_re