Skip to content

Commit e710ca0

Browse files
authored
Documented sorting the numeric fields
1 parent ebf42c2 commit e710ca0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,14 @@ For adding sorting add sort options to table headers.
213213
```html
214214
<th data-sort="name:asc">Name (sort)</th>
215215
<th data-sort="director:desc">Director (sort)</th>
216+
<th data-sort="balance:desc:number">Balance (sort)</th>
216217
```
217218

218219
- 'name' is json record field and second option is initial sorting order.
219220
- While streaming if you want to enable live sorting then set option to 'auto_sorting' to 'true' in streamtable options.
220221
- Default auto sorting is disabled while streaming.
221222
- If you streaming large amount of data then preferable to set auto_sorting off because sorting will happened every time data add so it will take time to sort.
223+
- You can specify the data type as 'number' if you want to sort numbers instead of strings
222224

223225

224226
Complete Options for reference:

0 commit comments

Comments
 (0)