From 51a0641bba5034631c56ea0d513ee993e43c81d9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 10 Apr 2022 08:51:05 +1000 Subject: [PATCH] Sort field change without field change should mark schema modified Closes #1789 --- rslib/src/notetype/schemachange.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rslib/src/notetype/schemachange.rs b/rslib/src/notetype/schemachange.rs index 0ac12b484..7ca00faa4 100644 --- a/rslib/src/notetype/schemachange.rs +++ b/rslib/src/notetype/schemachange.rs @@ -69,6 +69,7 @@ impl Collection { if !ords_changed(&ords, previous_field_count) { if nt.config.sort_field_idx != previous_sort_idx { // only need to update sort field + self.set_schema_modified()?; let nids = self.search_notes_unordered(nt.id)?; for nid in nids { let mut note = self.storage.get_note(nid)?.unwrap();