diff --git a/src/SemanticScuttle/functions.php b/src/SemanticScuttle/functions.php index 145600a..d21a094 100644 --- a/src/SemanticScuttle/functions.php +++ b/src/SemanticScuttle/functions.php @@ -49,7 +49,7 @@ function getSortOrder($override = NULL) { global $defaultOrderBy; if (isset($_GET['sort'])) { - return preg_replace('/[^a-z]/', '', $_GET['sort']); + return preg_replace('/[^a-z_]/', '', $_GET['sort']); } else if (isset($override)) { return $override; } else {