Forum:Images in "sortable" tables

In tables in which one column is an image (with no text, but the image has the proper alt attribute, which is its text-equivalent) the sorttable extension does not take care of the alt attribute, and the sorting of that column is never done.

I've made a hack to improve the functionality of sorting cells with images (in w:c:es.pokemon:MediaWiki:Common.js), replacing the function that gets the text of the cell with a customized one, but it could be applied to the default js of all wikia to fix this issue.

An example of a table with a column of images sortables is at w:c:es.pokemon:Lista de Pokémon --Ciencia Al Podertalk-@WikiDex 19:29, 23 March 2007 (UTC)


 * Okay, the last week, all the javascript functions involved in the "sortable tables" extension were placed into the wikibits.js file. Today, these functions are placed in a file called sorttable.js which is loaded only when a table with class="sortable" is found within the document. But now, it throws a javascript error when attempting to sort a column with only images in that line:

for( var i = 1, itm = ""; itm.match(/^([\s]|\n|\ |)*$/); i++) { var itm = ts_getInnerText(table.tBodies[0].rows[i].cells[column]); itm = trim(itm); }


 * because there's no tbodies in a wiki table. So, the patch I'd done is now useless :( . Is there any possibilities that if I submit some improvements to this file, the sorttable.js file would be updated? Or it must be done with a patch on the local wikia like I'd done before? --Ciencia Al Podertalk-@WikiDex 18:46, 30 March 2007 (UTC)