From 9ccb1bccd9590c92de8e83185864b76b6110375c Mon Sep 17 00:00:00 2001 From: Tung Du Date: Wed, 14 Dec 2022 19:50:09 +0700 Subject: [PATCH] Product Query: Add `Sorted by title` preset. (#7949) * Add `Sort by title` preset. * sorted, thanks @nerrad --- .../product-query/inspector-controls/popular-presets.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/blocks/product-query/inspector-controls/popular-presets.tsx b/assets/js/blocks/product-query/inspector-controls/popular-presets.tsx index d4af544f022..cb7e6c575e3 100644 --- a/assets/js/blocks/product-query/inspector-controls/popular-presets.tsx +++ b/assets/js/blocks/product-query/inspector-controls/popular-presets.tsx @@ -11,6 +11,10 @@ import { ProductQueryBlock, ProductQueryBlockQuery } from '../types'; import { setQueryAttribute } from '../utils'; const PRESETS = [ + { + key: 'title/asc', + name: __( 'Sorted by title', 'woo-gutenberg-products-block' ), + }, { key: 'date/desc', name: __( 'Newest', 'woo-gutenberg-products-block' ) }, { key: 'popularity/desc',