User:PerfektesChaos/js/resultListSort

JavaScript gadget to sort page lists on special pages.

On pages like “Whatlinkshere” several hundred results may occur in any order dropped from database query. Name spaces are mixed randomly, no one gets a survey.

Usage

 * If your project has registered this as a gadget, just activate on your Preferences page.
 * Otherwise include the following lines into your common.js or skin dependant like vector.js:
 * The gadget works also with non-WMF sites using MediaWiki 1.18 or higher.

Effects
By default there is just a link added to the content actions of portlet. If sorting is needed it may be requested manually.

However, some types of special pages may be configured by user to perform sorting automatically, if machine is fast enough and response time acceptable to the user.

Other pages may be added if meaningful use found.

Customization
Insert the following statement into your standard user script like common.js (best before mw.loader.load, if any):

Example: Note: Customization may be ignored if not put into a standard user script, since other scripts are loaded later and resultListSort has no knowledge about, won’t wait for them.

Code

 * Java Script for load
 * human readable version
 * Resource loader:  for Extension:Gadgets
 * Dependencies: ,

Other languages

 * German