add_filter( 'wpsl_store_data', 'custom_result_sort' ); function custom_result_sort( $store_meta ) { $custom_sort = array(); foreach ( $store_meta as $key => $row ) { $custom_sort[$key] = $row['store']; // Adjust 'store' if you want to sort by a different field } array_multisort( $custom_sort, SORT_ASC, SORT_NATURAL|SORT_FLAG_CASE, $store_meta ); return $store_meta; }
Showing 1–16 of 46 results