Ich erwäge tinysort zu verwenden, um eine komplexe div
Liste zu sortieren und hier zuerst html wird versuchenJQuery tinysort arbeiten nicht
<div id = "sort">
<div id = "volume">
<div id ="section1">S5
<div>S5-2</div>
<div>S5-1</div>
</div>
<div id="section2">S2</div>
<div id="section3">S3</div>
</div>
</div>
<script>
$(document).ready(function() {
tinysort('div#volume>div');
tinysort('div#section1>div');
});
</script>
Ich wünsche, dass es
S2
S3
S5
S5-1
S5-2
sein wird, aber es ist
S5
S5-2
S5-1
S2
S3
ich, dass dashshes ignorieren verloren, danke! –