Opened 15 years ago
Closed 14 years ago
#17141 closed defect (bug) (fixed)
In WP Admin -> Posts, sorting the list by Author actually sorts by Author ID
| Reported by: | aneesme | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Administration | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
When I click on the author column title to sort the post listing by the author, it sorts by author id and I see the list messed up.
Attachments (1)
Change History (10)
#2
@
15 years ago
- Summary In Dashboard->Posts, sorting the list by Author actually sorts by Author ID → In WP Admin -> Posts, sorting the list by Author actually sorts by Author ID
Also, we call dashboard only the first screen: wp-admin/index.php
What you're refering to is the administration area.
#4
@
14 years ago
One could argue that the author column simply shouldn't be sorted. You can already click a single author's name to filter them down. If you can filter, and the sort is buggy, why have it? It could be implemented instead as a plugin.
#5
@
14 years ago
The expectation would be that it sorts by wp_users.displayname. If that's not acceptable, I agree that we should disable sorting. We did the same on the Users screen when it came to post counts.
#7
@
14 years ago
@scribu, I don't think that there is a way to order authors by author name without using a JOIN clause. A join would indeed affect the performance seriously having a large posts or users table but currently order_by takes place only for fields from the posts table.
There could probably be an extra screen (implemented by a plugin) for listing this, but a join-driven one.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This was always the case; now it's just more visible.
The argument is that the wp_posts table shouldn't be JOINed to the global wp_users table, which can get quite large on Multisite setups.