Description
This was a known issue in Magento and it was fixed in this PR #1568. The attributes order listed in the product page is not the same with the one in the comparison window. In the past I reported this issue on Stack Exchange and Magento Forum too and I got a solution that worked, I did not spend time to check if a better one can be promoted. Here are the links:
https://magento.stackexchange.com/questions/64983/attributes-order-in-comparison-window-is-wrong
In 2023 this PR #2993 changed the function getComparableAttributes() in this file app/code/core/Mage/Catalog/Model/Resource/Product/Compare/Item/Collection.php and the ordering of the attributes in the comparison window was affected once again.