I am wondering if it is possible to reorder a unordered list based on
the list items 'rel' attribute?

i have a list of items that change dynamically (its linked in with
google maps, the 'rel' attribute of the list item is updated with the
new distance from the google map marker icon when the marker is moved)
and i want it to update the list ordering each time a 'rel' attribute
changes.

i had a good look about, but i cant find anything for numerical
ordering (its all alphabetical) so im hoping somebody here could help?

my list essientially looks like this:

<ul>
<li rel="42.53">Place One</li>
<li rel="51.21">Place Two</li>
<li rel="98.32">Place Three</li>
</ul>

i'd be greatful for any help!

Reply via email to