-1

I have this code:

<h2 class="title">A-Z Categories</h2>
<div id="cat-abc">

<div class="cat-top">
<ul>
<li>January</li>
<li>May</li>
<li>November</li>
<li>August</li>
</ul>
</div>

<div class="cat-top">
<ul>
<li>March</li>
<li>June</li>
<li>September</li>
<li>December</li>
</ul>
</div>


</div>

I would like to sort this items alphabetically.How can I Lists alphabetical ordered by javascript ?

August
December
January
June

March
May
November
September
Thanks.

2
  • Sort what, exactly? Can you at least provide what the expected output is? Commented Mar 15, 2013 at 23:54
  • Possible Duplicate stackoverflow.com/questions/1535744/… Commented Mar 15, 2013 at 23:56

1 Answer 1

0

I would like to output looks like sorting items alphabetically:

August
December
January
June

March
May
November
September

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.