Skip to content

Commit

Permalink
Sort options alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed May 10, 2024
1 parent 1afc37c commit 97ebf75
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/post-order-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const PostOrderControls = ( { attributes, setAttributes } ) => {
label: __( 'Author', 'advanced-query-loop' ),
value: 'author',
},
{
label: __( 'Comment Count', 'advanced-query-loop' ),
value: 'comment_count',
},
{
label: __( 'Date', 'advanced-query-loop' ),
value: 'date',
Expand All @@ -42,8 +46,8 @@ export const PostOrderControls = ( { attributes, setAttributes } ) => {
value: 'modified',
},
{
label: __( 'Title', 'advanced-query-loop' ),
value: 'title',
label: __( 'Menu Order', 'advanced-query-loop' ),
value: 'menu_order',
},
{
label: __( 'Meta Value', 'advanced-query-loop' ),
Expand All @@ -53,21 +57,17 @@ export const PostOrderControls = ( { attributes, setAttributes } ) => {
label: __( 'Meta Value Num', 'advanced-query-loop' ),
value: 'meta_value_num',
},
{
label: __( 'Random', 'advanced-query-loop' ),
value: 'rand',
},
{
label: __( 'Menu Order', 'advanced-query-loop' ),
value: 'menu_order',
},
{
label: __( 'Post ID', 'advanced-query-loop' ),
value: 'id',
},
{
label: __( 'Comment Count', 'advanced-query-loop' ),
value: 'comment_count',
label: __( 'Random', 'advanced-query-loop' ),
value: 'rand',
},
{
label: __( 'Title', 'advanced-query-loop' ),
value: 'title',
},
] }
onChange={ ( newOrderBy ) => {
Expand Down

0 comments on commit 97ebf75

Please sign in to comment.