WC_Admin_List_Table_Products::order_by_sku_asc_post_clauses()publicWC 1.0

Handle sku sorting.

Method of the class: WC_Admin_List_Table_Products{}

No Hooks.

Return

Array.

Usage

$WC_Admin_List_Table_Products = new WC_Admin_List_Table_Products();
$WC_Admin_List_Table_Products->order_by_sku_asc_post_clauses( $args );
$args(array) (required)
Query args.

WC_Admin_List_Table_Products::order_by_sku_asc_post_clauses() code WC 9.4.2

public function order_by_sku_asc_post_clauses( $args ) {
	$args['join']    = $this->append_product_sorting_table_join( $args['join'] );
	$args['orderby'] = ' wc_product_meta_lookup.sku ASC, wc_product_meta_lookup.product_id ASC ';
	return $args;
}