__PACKAGE__->meta->initialize;
__PACKAGE__->attr_html('notes');
-__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' });
+__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' });
+__PACKAGE__->attr_sorted({ unsorted => 'customerprices', position => 'sortorder' });
__PACKAGE__->before_save('_before_save_set_partnumber');
</thead>
<tbody id="customerprice_rows">
[% SET listrow = 0 %]
- [%- FOREACH customerprice = SELF.part.customerprices %]
+ [%- FOREACH customerprice = SELF.part.customerprices_sorted %]
[% listrow = listrow + 1 %]
[% PROCESS 'part/_customerprice_row.html' customerprice=customerprice listrow=listrow %]
[%- END %]