public static function update_items_order($item_orders = array())
 {
     if (is_array($item_orders) && count($item_orders) > 0) {
         foreach ($item_orders as $category_id => $category_order) {
             WC_Compare_Categories_Data::update_order($category_id, $category_order);
         }
     }
 }
 public static function woocp_update_cat_orders()
 {
     check_ajax_referer('woocp-update-cat-order', 'security');
     $updateRecordsArray = $_REQUEST['recordsArray'];
     $listingCounter = 1;
     foreach ($updateRecordsArray as $recordIDValue) {
         WC_Compare_Categories_Data::update_order($recordIDValue, $listingCounter);
         $listingCounter++;
     }
     _e('You just save the order for compare categories.', 'woo_cp');
     die;
 }