-
Actually, I have dates in my table and they are in this format: "Wed Mar 25 2015", now I am wondering, if I want to implement sorting according to dates then how to? Also maybe in future I might want a custom sorting according to different data, so how could one achieve this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay I figured it out. It was written in docs too but I wished there was a working example too, but I am greatful for the docs anyways. Leaving this, as it might be helpful to others too... Here's how I did it for sorting dates well. You will have to modify the logic inside the
|
Beta Was this translation helpful? Give feedback.
Okay I figured it out. It was written in docs too but I wished there was a working example too, but I am greatful for the docs anyways. Leaving this, as it might be helpful to others too...
Here's how I did it for sorting dates well. You will have to modify the logic inside the
compareFn
yourself though according to your needs, the rest of the syntax will be the same.