Code Suffix Sort Order Does Not Work

Description

The code suffix sort order does not work.

The code looks like it should add the suffix in order as it adds the code suffix to an array by;
$attribute_code_array[(int)$attribute_code['suffix_sort_order']] = $attribute_code['code_suffix'];

However if you use print_r() you will see it is just added in the order form the item e.g.
$attribute_code_array{
[1] => "DEF",
[0] => "ABC",
}

To fix, open /catalog/includes/classes/shopping cart.php
Starting around line 519 find;
$attribute_code_array[(int)$attribute_code['suffix_sort_order']] = $attribute_code['code_suffix'];
} // end if
$i++;
} // end foreach

Add the following after the "} // end foreach" line;
ksort($attribute_code_array);

This will now sort the $attribute_code_array array by the keys.

Environment

None

Steps to reproduce

None

Assignee

Giles Marshall

Reporter

Scott Murphy

Labels

None

Severity

Minor

Components

Fix versions

Priority

Configure