Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Product Query: Add Sorted by title preset. (#7949)
Browse files Browse the repository at this point in the history
* Add `Sort by title` preset.

* sorted, thanks @nerrad
  • Loading branch information
dinhtungdu authored and danieldudzic committed Dec 14, 2022
1 parent c05d4a8 commit 9ccb1bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9ccb1bc

Please sign in to comment.