.Dd February 16, 2021 .Dt BIBSORT 1 .Os . .Sh NAME .Nm bibsort .Nd reformat bibliography . .Sh SYNOPSIS .Nm .Op Ar file . .Sh DESCRIPTION .Nm reformats on standard output the .Em STANDARDS section of the .Xr mdoc 7 manual page .Ar file or standard input. Bibliographic references are sorted by author last names, and formatted in an item list with macro lines appearing in the order they are formatted by .Xr mandoc 1 . Additionally, .Ic \&%N macros referencing RFC numbers are rewritten to .Ic \&%R macros and missing .Ic \&%U macros are added for RFCs. . .Sh EXAMPLES .Dl :%!bibsort