Skip to content

Commit

Permalink
Fixes #1617 Use attribute id as last resort order
Browse files Browse the repository at this point in the history
which mirrors the way the collection of attributes is sorted when attributes have the same default_position (ie. attribute defined position).
Record id is only valid for initially UNpinned attributes.
  • Loading branch information
rbayet committed Nov 13, 2019
1 parent d71e2fc commit 180ab17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define(['Magento_Ui/js/dynamic-rows/dynamic-rows'], function (DynamicRows) {
order = propOne.data().default_position - propTwo.data().default_position;

if (order === 0) {
order = propOne.recordId - propTwo.recordId;
order = propOne.data().attribute_id - propTwo.data().attribute_id;
}
}

Expand Down

0 comments on commit 180ab17

Please sign in to comment.