Open
Description
Preconditions (*)
- Magento Commerce 2.3.3
Steps to reproduce (*)
- Add a child block with
sortOrder
value of1
in your layout XML, e.g.,Magento_Customer/layout/customer_account.xml
in your custom theme:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_account_navigation">
<block class="Magento\Customer\Block\Account\SortLinkInterface" name="customer-account-navigation-logout-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Logout</argument>
<argument name="path" xsi:type="string">account/logout</argument>
<argument name="sortOrder" xsi:type="number">1</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
- Flush the layout and full page caches
- Log in at the front end and navigate to
/customer/account/
Expected result (*)
- A new, Logout link should appear in the left sidebar at the very top.
Actual result (*)
- A new, Logout link appears at the very bottom instead.
My understanding is that the lower the sortOrder value is, the higher up the item should be rendered in the list. It seems to be reversed.
Seems similar to:
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it