Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/checkout/commerce_checkout.module
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function commerce_checkout_pages() {
}
}

uasort($checkout_pages, 'drupal_sort_weight');
backdrop_sort($checkout_pages);

// Initialize the previous and next pages.
$previous_page_id = NULL;
Expand Down Expand Up @@ -623,7 +623,7 @@ function commerce_checkout_panes($conditions = array(), $skip_saved_data = FALSE
}

// Sort the panes by their weight value.
uasort($checkout_panes, 'drupal_sort_weight');
backdrop_sort($checkout_panes);
}

// Apply conditions to the returned panes if specified.
Expand Down
2 changes: 1 addition & 1 deletion modules/line_item/commerce_line_item.module
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ function commerce_line_item_summary_links() {
backdrop_alter('commerce_line_item_summary_link_info', $links);

// Sort the links by weight and return the array.
uasort($links, 'drupal_sort_weight');
backdrop_sort($links);
}

return $links;
Expand Down
4 changes: 2 additions & 2 deletions modules/order/commerce_order.module
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ function commerce_order_states() {
// Give other modules a chance to alter the order states.
backdrop_alter('commerce_order_state_info', $order_states);

uasort($order_states, 'drupal_sort_weight');
backdrop_sort($order_states);
}

return $order_states;
Expand Down Expand Up @@ -1137,7 +1137,7 @@ function commerce_order_statuses($conditions = array()) {
// Give other modules a chance to alter the order statuses.
backdrop_alter('commerce_order_status_info', $order_statuses);

uasort($order_statuses, 'drupal_sort_weight');
backdrop_sort($order_statuses);
}

// Apply conditions to the returned statuses if specified.
Expand Down
2 changes: 1 addition & 1 deletion modules/payment/commerce_payment.module
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ function commerce_payment_totals_rows($totals, $order) {
backdrop_alter('commerce_payment_totals_row_info', $rows, $totals, $order);

// Sort the rows by weight and return the array.
uasort($rows, 'drupal_sort_weight');
backdrop_sort($rows);

return $rows;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function commerce_payment_pane_checkout_form($form, &$form_state, $checkout_pane
rules_invoke_all('commerce_payment_methods', $order);

// Sort the payment methods array by the enabling Rules' weight values.
uasort($order->payment_methods, 'drupal_sort_weight');
backdrop_sort($order->payment_methods);

// Generate an array of payment method options for the checkout form.
$options = array();
Expand Down
2 changes: 1 addition & 1 deletion modules/price/commerce_price.module
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ function commerce_price_field_formatter_view($entity_type, $entity, $field, $ins
backdrop_alter('commerce_price_formatted_components', $components, $item, $entity);

// Sort the components by weight.
uasort($components, 'drupal_sort_weight');
backdrop_sort($components);

// Format the prices for display.
foreach ($components as $key => &$component) {
Expand Down