Sort the div in alphabetical order using data attribute
问题 I want to sort the html div in alphabetical order using data attribute value. I have the following code and would like to know, how can this be achieved <div id="aphaOrder"> <div class="value" data-site="olark">olark</div> <div class="value" data-site="snapengage">snapengage</div> <div class="value" data-site="helponclick">helponclick</div> <div class="value" data-site="hangouts">hangouts</div> <div class="value" data-site="atlass">atlass</div> <div class="value" data-site="hipchat">hipchat<