Skip to content

Commit 4a97726

Browse files
committed
Revert "Sort api categories by title. Fixes #118"
This reverts commit f7b3d5f. Makes sorting on api.jquery.com much worse.
1 parent f7b3d5f commit 4a97726

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', 'title' );
12+
$query->set( 'orderby', 'name' );
1313
$query->set( 'order', 'ASC' );
1414
$query->set( 'posts_per_page', -1 );
1515

0 commit comments

Comments
 (0)