Skip to content

Commit

Permalink
ensure variable sorting is case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Aug 6, 2024
1 parent f70041f commit e2393c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csl/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ impl<'a> StyleContext<'a> {
SortKey::Variable { variable: Variable::Standard(s), .. } => {
let a = InstanceContext::sort_instance(a, a_idx)
.resolve_standard_variable(LongShortForm::default(), *s)
.map(|s| s.to_string());
.map(|s| s.to_string().to_lowercase());
let b = InstanceContext::sort_instance(b, b_idx)
.resolve_standard_variable(LongShortForm::default(), *s)
.map(|s| s.to_string());
.map(|s| s.to_string().to_lowercase());

a.cmp(&b)
}
Expand Down
1 change: 1 addition & 0 deletions tests/citeproc-pass.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ position_TrueInCitation
punctuation_DateStripPeriods
punctuation_DoNotSuppressColonAfterPeriod
punctuation_NoSuppressOfPeriodBeforeSemicolon
sort_CaseInsensitiveCitation
sort_Citation
sort_CitationSecondaryKey
sort_CiteGroupDelimiter
Expand Down

0 comments on commit e2393c9

Please sign in to comment.