//Sort Image Links
function sortImageFileLinks(){
var rg = /^(Talk|User|Wikipedia|Image|MediaWiki|Template|Help|Category|Portal)( talk)?:/
var li, i, removed = [], ul = document.getElementById('filelinks')
if (!ul) return
while ((ul=ul.nextSibling) && ul.nodeName != 'UL')
if (!ul) return
li = ul.getElementsByTagName('LI')
for (i=0; i<li.length; i++)
if (li[i].firstChild.title.match(rg))
removed.push(li[i])
removed.sort(function(a,b){ return (a.firstChild.title > b.firstChild.title)?1:-1})
ul.appendChild(document.createElement('hr'))
for (i=0; i<removed.length; i++)
ul.appendChild(removed[i])
}