{"version":"2.1.327","anchor":"grep-output-ordering-and-glob-sorting","canonical_anchor":"grep-output-ordering-and-glob-sorting","heading":"Search results from Grep and Glob now come back in a fixed order","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/grep-output-ordering-and-glob-sorting","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Search results from Grep and Glob now come back in a fixed order\n\nGrep now groups and sorts its matches by file, and Glob sorts its file list, so the same search returns results in the same order\n\n**What**\n\nGrep is the tool Claude uses to search inside files for text. Its results used to appear in whatever order the underlying search program happened to find them. They are now grouped by file and sorted.\n\nGlob is the tool Claude uses to find files by name pattern. It now sorts the list of files it found before looking up when each file was last changed.\n\n**Why**\n\nRunning the same search twice now gives the same order. That helps prompt caching, where Claude Code reuses work already done on earlier input instead of processing it again.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}