Skip to content

Commit 582b7f5

Browse files
committed
Using meta_value_num for ordering, now correct
1 parent 3c8f476 commit 582b7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mu-plugins/plugins.jquery.com/posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function jquery_plugin_posts_only_for_searches( $query ) {
4949
$query->set( 'post_type', 'jquery_plugin' );
5050
$query->set( 'post_parent', 0 );
5151
$query->set( 'meta_key', 'watchers' );
52-
$query->set( 'orderby', 'meta_value' );
52+
$query->set( 'orderby', 'meta_value_num' );
5353
$query->set( 'order', 'DESC' );
5454
}
5555
}

0 commit comments

Comments
 (0)