Sort your html list array or div without doing any css line.
Sometimes examples help more than a book of explanation.
<button
data-em-sort='true'
data-em-sort-parent-sortable-selector='.item'
data-em-sort-sortable-selector='.name'>Sort Asc
</button>
<button
data-em-sort='true'
data-em-sort-parent-sortable-selector='.item'
data-em-sort-sortable-selector='.name'
data-em-sort-sortable-order="DESC">Sort Desc
</button>
<ul>
<li class="item">
<span class="name">3</span>
</li>
<li class="item">
<span class="name">1</span>
</li>
<li class="item">
<span class="name">2</span>
</li>
</ul>