How can I make table being capable of sorting with Twitter Bootstrap?
问题 I want to know how can I make my table being capable of sorting with Twitter Bootstrap? What are the things to be considered? 回答1: There is a library that provides the capability of sorting with bootstrap tables. Here's a quick demonstration of how to use it. HTML: <table class="table table-bordered table-striped sortable"> <thead> <tr> <th data-defaultsign="month" data-sortcolumn="1" data-sortkey="1-1"> Date </th> </tr> </thead> <tbody> <tr> <td data-dateformat="D-M-YYYY">16.4.2004</td> </tr