From 5e92d1a83974dc7ec53c992d21cb656e668bd144 Mon Sep 17 00:00:00 2001 From: Cooper Dalrymple Date: Wed, 17 Jun 2026 16:16:24 -0500 Subject: [PATCH] Define order in term posts query --- inc/class-sort.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/class-sort.php b/inc/class-sort.php index ef27330..66fda9b 100644 --- a/inc/class-sort.php +++ b/inc/class-sort.php @@ -792,6 +792,7 @@ final class Sort { ]], 'meta_key' => "ogre-sort_{$relationship['taxonomy']}_{$term_id}", 'orderby' => 'meta_value_num', + 'order' => 'ASC', ]); $posts = array_values(array_unique($posts)); foreach ($posts as $i => $post_id) {