Skip to content

Commit 99b80bc

Browse files
jzaeffererrdworth
authored andcommitted
Sort api categories by title. Fixes #118
(cherry picked from commit f7b3d5f)
1 parent 4048907 commit 99b80bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mu-plugins/api-sites/category-listings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if ( ! $query->is_main_query() )
1010
return;
1111

12-
$query->set( 'orderby', 'name' );
12+
$query->set( 'orderby', 'title' );
1313
$query->set( 'order', 'ASC' );
1414
$query->set( 'posts_per_page', -1 );
1515

0 commit comments

Comments
 (0)