Help:Sortable tables: Difference between revisions

Content deleted Content added
Sort under template: update now that the old template has been deleted
Specifying a sort key for a cell: ce, the red makes it hard to read
Line 923:
See also [[mw:Help:Sorting#Specifying a sort key]].
 
'''If you have a list where all the entries start with quotes ("),''' and you want to set a sort key for one of the entries, then you will need to use the '''[http://www.ascii.cl/htmlcodes.htm HTML name or number]''' for quotes at the beginning of that sort key. See(see also {{section '''[[link|List of XML and HTML character entity references#|Character entity references in HTML|here]]''' too}}). Lists of song titles for example sometimes have each song title in quotes. So to sort by a particular word in a song title use one of these:
 
<code style="color:red; font-weight:bold;">data-sort-value="&amp;quot;WORD"</code>
 
<code style="color:red; font-weight:bold;">data-sort-value="&amp;#34;WORD"</code>
 
=== Keeping some rows together ===