Request: change default admin sort order
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
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
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 10up/simple-page-ordering
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
10up/simple-page-ordering#314 ·
-
Add Abilities API functionalityPossibly taken @phpbits claimed this 18 days ago. Openhelp wanted
Difficulty 4/5 3-5 days Newbie friendliness 42/100
10up/simple-page-ordering#311 · 1 assignee ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 48/100
10up/simple-page-ordering#303 ·
-
Add plugin header and version number tests.May be free again @peterwilsoncc claimed this 59 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
10up/simple-page-ordering#292 · 1 assignee ·
-
Add branch check to release workflow.Possibly taken @peterwilsoncc claimed this 192 days ago. Open
10up/simple-page-ordering#285 · 1 assignee ·
All issues in 10up/simple-page-ordering
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#74 ·