Skip to content

Commit

Permalink
fix(database): sorting was not applied when database child changed. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aymaalo committed May 13, 2024
1 parent c9890bb commit c074de2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class FirebaseSortedList extends ListBase<DataSnapshot>
});
final int index = _snapshots.indexOf(snapshot);
_snapshots[index] = event.snapshot;
_snapshots.sort(comparator);
onChildChanged!(index, event.snapshot);
}

Expand Down

0 comments on commit c074de2

Please sign in to comment.