Encounters (R4) documentation says that "A populated Encounter response bundle will be sorted from newest to oldest based on the start of the
Encounter.period.", but in the dev sandbox, it appears that the response is NOT sorted newest to oldest.
Example:
X-Request-Id cc0884b1-0708-4f77-ab61-e191bb40e9d9
Search returned 9 encounters sorted by encounter ID or start date: