diff --git a/lib/core/controllers/colored_text_editing_controller.dart b/lib/core/controllers/colored_text_editing_controller.dart index 0b3b72d..6257bda 100644 --- a/lib/core/controllers/colored_text_editing_controller.dart +++ b/lib/core/controllers/colored_text_editing_controller.dart @@ -130,9 +130,6 @@ class ColoredTextEditingController extends TextEditingController { }) sync* { int currentOffset = 0; // enter index - // Sort mistakes by offset - _mistakes.sort((a, b) => a.offset.compareTo(b.offset)); - for (final Mistake mistake in _mistakes) { final mistakeEndOffset = min(mistake.endOffset, text.length); if (mistake.offset > mistakeEndOffset) continue;