GitHub Sort Content

Mottie
2016-07-14T03:17:10Z

A userscript that makes some lists & markdown tables sortable

A userscript that makes some lists & markdown tables sortable

This userscript makes the following content sortable; links to some example pages (install the userscript first!):

Markdown tables - on https://github.com/(:user|:org)/:repo and https://github.com/(:user|:org)/:repo/wiki pages

Repo files table - https://github.com/(:user|:org)/:repo (sort content, message or age columns)

Feed Activity - https://github.com (recent & all)

Main Sidebar - https://github.com (Repositories & Your teams)

Pinned Repos - https://github.com/:org & https://github.com/:user

Organization repos - https://github.com/:org (inline with search input)

Organization people - https://github.com/orgs/:org/people (inline with search input)

Organization outside collaborators (own orgs) - https://github.com/orgs/:org/outside-collaborators

Organization teams (own orgs) - https://github.com/orgs/:org/teams

Organization team repos - https://github.com/orgs/:org/teams/:team/repositories

Organization team members - https://github.com/orgs/:org/teams/:team/members

Organization projects - https://github.com/:org/projects

User repos - https://github.com/:user?tab=repositories.

User stars - https://github.com/:user?tab=stars.

User Followers:

https://github.com/:user?tab=followers.

https://github.com/:user/followers.

https://github.com/:user/followers/you_know.

User Following:

https://github.com/:user?tab=following.

https://github.com/:user/following.

https://github.com/:user/following/you_know.

Watching - https://github.com/watching.

Repo stargazers - https://github.com/:user/:repo/stargazers.

Repo watchers - https://github.com/:user/:repo/watchers.

The script uses tinysort:

Therefore, only a ascending or descending sort of the list can be applied.

The only way to reset the sort is to reload the page.

Sorting of dates will work if all dates are within the same year; dates that span years will not sort properly - this is a limitation of the tinysort plugin.

The sort only applies to the elements on the current page; lists that continue on to other pages are not included.

Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.

* NOTES *

In v3.0+, the https://github.com/:user?tab=stars and https://github.com/watching pages sort the content using the repository name, and not the owner of the repo.

Columns containing dates will not sort as expected because the tinysort library does not support it natively.

Markdown table

Organization repos/people (only the current page)

Following/You Know

Hosted with ♥ at GitHub