Orders are no longer in SKU numerical order

Since August 2024, orders placed in my store no longer appear in SKU numerical order. They used to be sorted with the lowest SKU number first, highest SKU number last. So the list of products a customer ordered would go like this when I view the order or print the order page:

316a

316b

316c

364

365

420

505-6a

Since August, they are no longer sorted in numerical order, so it’s hard to pick the order efficiently. They are randomly ordered like this:

410

316c

364

316a

505-6a

316b

How can I get them to show in numerical order again?