@ 261102.1 · fetching

261021.4 · 2adb741c33b276990f55e4b9f5c33d316070dc3c

Respect --no-sort in non-streaming filter mode

- --sync, --tac, --bench disable streaming filter, and the result was sorted
- Matcher.scan already checks pattern.sortable

Problem analyzed and patch submitted by @NavpreetSSidhu

Fix #4940

Co-authored-by: NavpreetSSidhu <116211004+NavpreetSSidhu@users.noreply.github.com>

reading declarations

Changes to src/core.go. All files

src/core.go

@@ -264,7 +264,6 @@ func Run(opts *Options) (int, error) { 		}  		pattern := patternBuilder([]rune(*opts.Filter))-		matcher.sort = pattern.sortable  		transformer := buildItemTransformer(opts)