Help:Sortable tables: Difference between revisions

Content deleted Content added
Padding: New section. Move the discussion of padding here, since it's somewhat orthogonal to sortkeys.
Unsuitability of padding with no-break spaces: Shorten to "Non-breaking spaces".
Line 531:
Sometimes entries are padded on the left for alignment purposes. This can adversely affect how they are sorted.
 
===Unsuitability of padding with noNon-breakbreaking spaces===
The effect of left-padding with [[w:Non-breaking space|"<code>&amp;nbsp;</code>" codes]], which render as blank spaces, depends on the browser: in IE they are (unlike actual blank spaces) counted for sorting as leading blank spaces, so in a list of numbers with text (for which the alphabetic sorting mode applies) they could be used to equalize the number of characters before the explicit or implicit decimal separator. However, in Firefox they are ignored for the purpose of sorting.
 
{|class="wikitable sortable"