You should be able to prompt engineer your way out of this:
order is one of the params the search tool gets … it does not even default to latest.
You can force an ordering by wacking in a base query on your tool and prompting it asking it never to supply order: discourse-ai/lib/ai_bot/tools/search.rb at e8d110b444df8ab540232d050ed8c3744a5f38e6 · discourse/discourse-ai · GitHub