List items on alphabetical order

2/5(1)

You are viewing an old revision of this post, from 3 juli 2014 @ 10:36. See below for differences between this version and the current revision.

<ol type="A">
<li><span class="label">Text</span></li>
<li><span class="label">Text</span></li>
<li><span class="label">Text</span></li>
</ol>

Post Revisions:

Changes:

3 juli 2014 @ 10:36Current Revision
Content
  With this Javascript snippet it is possible te make a list with items on alphabetical order
<pre class="lang:default decode:true " >&lt;ol type="A"&gt; <pre class="lang:default decode:true " >&lt;ol type="A"&gt;
&lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class="label" &gt;Text&lt;/ span&gt;&lt;/li&gt;
&lt;/ol&gt;</pre> &lt;/ol&gt;</pre>

Note: Spaces may be added to comparison text to allow better line wrapping.

Please rate this