Sort field change without field change should mark schema modified

Closes #1789
This commit is contained in:
Damien Elmes 2022-04-10 08:51:05 +10:00
parent 0b2a226dc8
commit 51a0641bba

View File

@ -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();