Wikipedia:WikiProject User scripts/Scripts/Sort Image Links

Description
The script sorts File Links (list of pages using the image) on Image pages. Articles are shown first, all other pages are sorted by namespace.

Limitation: for English projects only (namespaces are hardcoded). You can test the script for example here: Image:Crypto_key.svg.

Questions or suggestions are welcome either on this |talk page or on the author talk page.

Installation
All the code below should go to your monobook.js

Step 1
Main function:

Step 2
Depends on how you want the script to work.


 * immediately on page load


 * when you click new sort links tab on top


 * when you click new [ sort ] link next to "File links" heading