- Listing audit
- 46/100
Sort Query Posts is a WordPress Plugin Directory app by Tubal. With a rating of 5.0★ from 3 reviews.
Sort Query Posts is a WordPress app, with a 5.0 average rating from 3 reviews, as of Sep 11, 2026.
AppRanks verdict
Generated from marketplace data as of Sep 11, 2026
Sort Query Posts is a WordPress app. It holds a 5.0★ average from 3 reviews on WordPress.
Pros
- No standout positives in the measured data.
Cons
- −Only 3 reviews — the average can still move with a few new ratings
How Sort Query Posts works
Show full descriptionShow less
A really simple and lightweight plugin (73 lines of code – comments included) to sort posts on-the-fly without making a new query to the database (improves performance).
Features:
Supports all order_by and order values of the query_posts function except meta_value and meta_value_num (which require a database query).
Supports changing the order of all types of posts, including custom post type posts and custom post type “archive” posts.
Documentation This plugin adds the function sort_query_posts_by(string $order_by [, string $order]) to the global context.
The second $order parameter is optional. Its default value is asc (ascending order).
Call this function before the loop to change how posts are ordered.
After calling this function you can show the posts as you normally would.
You can sort posts by:
author
comment_count
date
id
menu_order
modified
parent
title
This is specially useful in two cases:
When you need to reorder the posts returned by the query that WordPress creates from your given URL. Custom post type “archive” posts are a great example of this case.