Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7403)
+++ /lib/functions.inc.php	(revision 7404)
@@ -543,5 +543,6 @@
 			"sanitize_title_with_dashes" => "str",
 			"sanitize_user" => "str",
-			"wpsg_txt_tbl" => "txt_tbl"
+			'sanitize_wpsg_in_array' => 'in_array',
+			"wpsg_txt_tbl" => "txt_tbl"			
 		);
  		 
@@ -564,4 +565,18 @@
 				
 				break;
+			
+			case 'in_array':
+				
+				if (!in_array($primary, $params[1])) {
+					
+					$GLOBALS['wpsg_sc']->addBackendError(__('UngÃŒltige Eingaben, bitte ÃŒberprÃŒfen Sie die markierten Felder.', 'wpsg'));
+					
+					return false;
+					
+				}
+				
+				$sanitized_val = $primary;
+				
+				break;
 				
 			case 'tf': 
@@ -569,5 +584,5 @@
 				if (!preg_match('/^\-?\d+(\.|\,)\d+$/', $primary)) {
 					
-					$GLOBALS['wpsg_sc']->addBackendError(__('UngÃŒltige Eingaben, bitte ÃŒberprÃŒfen Sie die markierten Felder.'.$primary, 'wpsg'));
+					$GLOBALS['wpsg_sc']->addBackendError(__('UngÃŒltige Eingaben, bitte ÃŒberprÃŒfen Sie die markierten Felder.', 'wpsg'));
 					
 					return false;
Index: /mods/wpsg_mod_productgroups.class.php
===================================================================
--- /mods/wpsg_mod_productgroups.class.php	(revision 7403)
+++ /mods/wpsg_mod_productgroups.class.php	(revision 7404)
@@ -99,5 +99,5 @@
 			
 			$this->shop->update_option('wpsg_productgroups_page', $_REQUEST['wpsg_productgroups_page'], false, false, "key");
-			$this->shop->update_option('wpsg_productgroups_order', $_REQUEST['wpsg_productgroups_order'], false, false, "key");
+			$this->shop->update_option('wpsg_productgroups_order', $_REQUEST['wpsg_productgroups_order'], false, false, "wpsg_in_array", [['id', 'alphabetisch', 'buyed', 'erstellungsdatum', 'preis']]);
 			$this->shop->update_option('wpsg_mod_productgroups_order_filter', $_REQUEST['wpsg_mod_productgroups_order_filter'], false, false, "key");
 			$this->shop->update_option('wpsg_mod_productgroups_productindex', $_REQUEST['wpsg_mod_productgroups_productindex'], false, false, "key");
