WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 3 years ago

#15828 closed enhancement (wontfix)

Alphabetized My Sites

Reported by: scep Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch needs-testing ux-feedback
Focuses: multisite Cc:

Description

For installs that have lots of sites it would be easier to browse if the sites are alphabetized. I add the following code to our install after each update. It would be nice if this was the default.

after line 72: reset( $blogs );

	function cmp($a, $b){
		if ($a->blogname == $b->blogname)return 0;
		else return ($a->blogname < $b->blogname) ? -1 : 1;
	}
	uasort($blogs, 'cmp');

Attachments (1)

15828.patch (1.1 KB) - added by jakub.tyrcha 10 years ago.

Download all attachments as: .zip

Change History (13)

#1 @jane
10 years ago

  • Milestone changed from Awaiting Review to Future Release

#2 @jakub.tyrcha
10 years ago

  • Keywords has-patch needs-testing added
  • Owner set to jakub.tyrcha
  • Status changed from new to accepted

I don't think the original idea is a good solution - get_blogs_of_user is called in several places and doing a sort outside of this function doesn't make any good. Instead, I propose to introduce internal sorting - it looks much better and does a better job. Patch attached. Also, I improved it to allow sorting by every variable, not only the blogname.

@jakub.tyrcha
10 years ago

#3 @technosailor
8 years ago

This patch needs a refresh, but I like the concept personally.

#4 follow-up: @jeremyfelt
7 years ago

  • Keywords ux-feedback added
  • Severity changed from minor to normal

Needs UX feedback. There is a filter for get_blogs_of_user that could probably be used by a plugin to do this. It may confuse a bunch of people already running multisite if the My Sites menu was all of a sudden alphabetized.

#5 @jeremyfelt
7 years ago

  • Component changed from Multisite to Networks and Sites
  • Focuses multisite added

#6 @jeremyfelt
6 years ago

#27517 was marked as a duplicate.

#7 in reply to: ↑ 4 @tryon
6 years ago

Replying to jeremyfelt:

Needs UX feedback. There is a filter for get_blogs_of_user that could probably be used by a plugin to do this. It may confuse a bunch of people already running multisite if the My Sites menu was all of a sudden alphabetized.

I came up with a plugin to do this a few years ago and just released it: https://wordpress.org/plugins/sort-my-sites/

I agree with your UX comment, by default we could leave it unordered and then allow the site owner/user to sort by Site ID, Site Name, Domain, Site Path, or Site URL.

#8 @wonderboymusic
5 years ago

  • Owner jakub.tyrcha deleted
  • Status changed from accepted to assigned

#9 @karmatosed
5 years ago

Conceptually I think the idea it's alphabetical makes sense. I agree though with the concern that suddenly seeing this change could be disconcerting. This is a not so cautious approach though. I'd personally say the usability gain would be enough to make this happen.

If we are being cautious, I would suggest we need to work out how many are self fixing this like the original comment. If that is a lot of users then it makes sense to change it without worrying about implications.

This ticket was mentioned in Slack in #design by karmatosed. View the logs.


3 years ago

#11 @karmatosed
3 years ago

As there hasn't been any feedback on amount that would benefit from this, going to close as this could be done with a plugin and avoid the issues of changing an interface.

#12 @karmatosed
3 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.