我正在考虑使用tinysort对复杂div
列表进行排序这里是第一次尝试html
<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>
我希望它会是
S2
S3
S5
S5-1
S5-2
然而它是
S5
S5-2
S5-1
S2
S3