I have a list of printed results (divs). Each one contains a child div with text "CLOSE" or "OPEN" what i want is to sort the results so the divs which contain the word "OPEN" be always at the top of the list. How can i do that using jquery ?
<div class="box"><div class="status">CLOSE</div></div>
<div class="box"><div class="status">CLOSE</div></div>
<div class="box"><div class="status">OPEN</div></div>
i think this isn't a duplicate question of THIS because in my fiddle i want to get the list sorted by specific text of a child element and not by attribute "data-sort". Thanks