remove `sortable` and use only `raw` to sort items #90

This commit is contained in:
Vinícius Nunes 2019-11-18 15:17:04 -03:00
parent b40a552d79
commit 60e960cb6b
1 changed files with 2 additions and 2 deletions

View File

@ -284,8 +284,8 @@ class Elastic_Press {
$new_sort["post_name.raw"] = $value;
} elseif ($key == 'post_type') {
$new_sort["post_type.raw"] = $value;
} elseif( !in_array("long", $parts) && in_array("meta", $parts) ) {
$new_sort["$key.sortable"] = $value;
// } elseif( !in_array("long", $parts) && in_array("meta", $parts) ) {
// $new_sort["$key.sortable"] = $value;
} else {
$new_sort[$key] = $value;
}