PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Post
  4. Sort Query Posts
Sort Query Posts icon

Sort Query Posts

Sort posts on-the-fly without making a new SQL query

By Tubal·Post·Free
5(3 reviews)
·100 active installs·Updated 13 years ago
DownloadVisit HomepageCompare

As of April 2026, Sort Query Posts is a WordPress post plugin with 100 active installations and a 5/5 rating from 3 reviews. It has been downloaded 11K+ times in total. Requires WordPress 2.5+ and PHP false+. Available on WordPress.org since 2011. Last updated 13 years ago — may have compatibility concerns. Top alternative: Header and Footer Scripts.

5/53 reviews
100active installs
11K+total downloads
15 yearssince 2011

Overview

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 norma…

Read full description on WordPress.org

Ratings & Reviews

53 reviews
5 ★
3
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress2.5+ requiredTested up to 3.4.2
PHPfalse+ required

Top Alternatives to Sort Query Posts

Header and Footer Scripts icon
Header and Footer Scripts
4.6200K+ installsUpdated 2 months ago
ViewCompare
Post Type Switcher icon
Post Type Switcher
4.7200K+ installsUpdated 1 week ago
ViewCompare
Post Duplicator icon
Post Duplicator
4.8200K+ installsUpdated 2 days ago
ViewCompare
Advanced Excerpt icon
Advanced Excerpt
4.380K+ installsUpdated 2 years ago
ViewCompare
Add From Server icon
Add From Server
4.660K+ installsUpdated 5 years ago
ViewCompare
View all post plugins →

Frequently Asked Questions

Changelog

1.1

  • Code refactored for improved performance. Updating is recommended.
View full changelog on WordPress.org

Contributors

TubalTubal
Plugin Info
Version
1.1
Last Updated
Sep 4, 2012
WP Requires
2.5+
Tested Up To
3.4.2
PHP Requires
false+
Active Installs
100
Downloads
11K+
Added
Jan 15, 2011
Business
Free

Tags

postsortqueryreorderorder_by

Developer

T
Tubal
2 plugins0.0M+ total installs
View all plugins →

Quick Compare

Sort Query Posts vs Header and Footer Scripts→Sort Query Posts vs Post Type Switcher→Sort Query Posts vs Post Duplicator→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.