AllenFang from React-bootstrap-table Repository

MIT License

30 Sep 2022

TaeBeomShin

started

Started On 30 Sep 2022 at 12:51:29

Eugenesimakin

A Bootstrap table built with React.js

Forked On 14 Sep 2022 at 03:16:16

Petrospatelis

A Bootstrap table built with React.js

Forked On 29 Aug 2022 at 11:10:46

Hammaddude1

Sort by Date

DO you have any examples by Sorting by Date? it seems it's sorted alphabetically instead of actual date. thanks!

Forked On 10 Aug 2022 at 02:10:05

Hammaddude1

@hauhuynh1208 did you find a fix for the issue you mentioned above?

Commented On 10 Aug 2022 at 02:10:05

Loupdemon

A Bootstrap table built with React.js

Forked On 09 Aug 2022 at 07:26:48

Aalekh42

A Bootstrap table built with React.js

Forked On 04 Aug 2022 at 09:37:16

Hauhuynh1208

Sort by Date

DO you have any examples by Sorting by Date? it seems it's sorted alphabetically instead of actual date. thanks!

Forked On 03 Aug 2022 at 10:29:01

Hauhuynh1208

Following solution for date sorting working like a charm

sortFunc: (a, b, order, dataField, rowA, rowB) => { 
     if (order === 'asc')
     {
       return Date.parse(a) - Date.parse(b)
     }
    else if (order === 'desc') {
       return  Date.parse(b) - Date.parse(a) 
     }
 } 

Hi @Apatil15, your solution is working perfectly. However, if there is any (a) or (b) is empty string, your function will be crashed. I wonder if you have any solution for empty datetime?

Commented On 03 Aug 2022 at 10:29:01

Mohamed-rehan5

started

Started On 17 Jul 2022 at 01:02:39

Meportillo

A Bootstrap table built with React.js

Forked On 09 Jul 2022 at 11:56:55

About Repository

A Bootstrap table built with React.js
Language: JavaScript
Star: 2244
Fork: 803
Watchers: 2244
Open Issues: 441
https://github.com/AllenFang/react-bootstrap-table
MIT License
Last updated: 30 Sep 2022
Tropics: