corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 # Table Natural Sorting
2  
3 Use Plugin: [bootstrap-table-natural-sorting](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/natural-sorting)
4  
5 ## Usage
6  
7 ```html
8 <script src="extensions/natural-sorting/bootstrap-table-natural-sorting.js"></script>
9 ```
10  
11 add a data-sorter atribute to any th.
12 *e.g.* ``` <th data-sortable="true" data-sorter="alphanum">Price</th>```
13  
14 ## Options
15  
16 ### alphanum
17 * sort alpha or numeric content naturally.
18 * This can be used in columns that contain text or numeric content.
19 * Numbers will be sorted as expected and not in ASCII order
20  
21 ### numericOnly
22 * extract numeric content and sort numerically.
23 * This can be used in columns that contain formated numeric content.
24 * *e.g.* $ and , will be removed, then Numbers will be sorted as expected
25 * an alpha sort crrently sorts these as ASCII so you get $1, $100, $2, $20
26 instead of $1, $2, $20, $100.
27