I have a sortable table here that I want its content (per row) updated through AJAX. Would programmatic changes in the cell contents affect the sorting order of the respective cell in the table? I think I've done it once, and it doesn't seem to work. After the page loads, the sortkey of each cell seemed fixed, and manipulating the cell content through scripting doesn't seem to change that.
How does mediawiki's sorting manage the sort order? What should I do to make the sorting to work properly after the cell content has changed?