Hello,
Ever since the new year (2023) has started, the default Customer Statement report (AR641500) is not sorting the results properly. There is an issue where it is not understanding where to put documents with a DocDate of 2023.
Here is a screenshot of the report schema (default), and an example of the bad sorting: