jQuery arange li order base on #ID
Posted
by Mircea
on Stack Overflow
See other posts from Stack Overflow
or by Mircea
Published on 2010-04-23T11:12:20Z
Indexed on
2010/04/23
11:23 UTC
Read the original article
Hit count: 261
Hi, I have the following code:
<ul>
<li id="project_25">Proj Something</li>
<li id="project_26">Proj Blah</li>
<li id="project_27">Proj Else</li>
<li id="project_31">Proj More</li>
...
</ul>
Is there a way to arrange these LIs, reverse their order, based on the LI ID?
Something like:
<ul>
<li id="project_31">Proj More</li>
<li id="project_27">Proj Else</li>
<li id="project_26">Proj Blah</li>
<li id="project_25">Proj Something</li>
...
</ul>
Thank you.
© Stack Overflow or respective owner