Add a user preference to https://www.openvpms.org/documentation/csh/2.0/preferences#history to switch the sort order of patient visits.
This should be called 'History Sort Order' and provide two options:
Oldest Visit First
Newest Visit First - this is the default
The existing 'Sort' field should be renamed 'Visit Record Sort Order' and provide two options:
Oldest Record First - this is the default
Newest Record First