Request: change default admin sort order

Open
#66 1 comment 3 reactions 0 assignees View on GitHub

@faisalahammad is already working on this.

Since Sep 30, 2026.

  • #309 by @faisalahammad — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by tracing the sort_by_order_link function and the admin query parameters orderby=menu_order+title and order=asc. Determine whether the default should place newly created items first or last, and whether the link URL and current-state check can be filtered; done means the chosen ordering is consistent and the requested parameters are extensible.

Written by the indexing model from the issue text.

Description

help wanted type:enhancement

Originally posted on wordpress.org: https://wordpress.org/support/topic/request-change-default-admin-sort-order/

When you first visit the “Sort by order” page, items are ordered alphabetically (due to the admin query being orderby=menu_order+title&order=asc and no items having a menu_order set).

After you set a manual order, all items have a unique menu_order set.

When you then start creating new items, its default position will appear to the user to be somewhat random. For example, if you add 5 new items, the first 5 items will be sorted alphabetically (including the first old item).

I would prefer to tell my clients this:

“By default, the most recent item you create will appear at the top,” [or bottom, depending on use case], ” but if you want it to appear somewhere else you can click on Sort by order”.

As opposed to this:

“Every single time you create a new item, you need to revisit the Sort by order page and make sure it in the position you want, because it may appear in a random position to begin with”.

Even if you didn’t make this the default behaviour, are you able to adjust the sort_by_order_link function to make the parameters filterable (for both the URL, and the ‘current’ check)? I can filter into views myself, remove your link, and add my own one, though it would be nicer if it were built in to ensure this doesn’t break in a future update.

Dominant language
PHP
Stars
157
Forks
24
Avg merge
12m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/simple-page-ordering

All issues in 10up/simple-page-ordering

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.