This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Demo: Items Sorting
Demos > Items Sorting
First Last
Source
<div id="persons">
<div class="item"><span class="first">First</span> <span class="last">Last</span></div>
</div>
<div>
<input type="button" value="Sort First" onclick="sortFirst();" />
<input type="button" value="Sort Last" onclick="sortLast();" />
</div>
$('#persons')
.items([
{first:'Isaac', last:'Newton'},
{first:'Johannes', last:'Keppler'},
{first:'Alessandro', last:'Volta'},
{first:'Blaise', last:'Pascal'},
{first:'Niels', last:'Bohr'},
{first:'Albert', last:'Einstein'},
{first:'Stephen', last:'Hawking'}
])
.chain();
function sortFirst()
{
$('#persons').items('sort', 'first', {toggle:true});
};
function sortLast()
{
$('#persons').items('sort', 'last', {toggle:true});
};






