V
V
Vitaly2015-10-05 14:28:30
JavaScript
Vitaly, 2015-10-05 14:28:30

How to sort a table?

I have a table like this,
b1291417ae184fc2a3481199dd1c6d8b.png
I get data from an ajax request. I'm trying to sort everything using the jquery plugin Tablesorter ( tablesorter.com )
The plugin kind of sorts, but I need the date and time from the date_time column to be taken into account when sorting by user_id, that is, so that both by user_id and date_time at the same time.
How can I implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
ndbn, 2015-10-05
@ndbn

Basically, the documentation says:

Sort multiple columns simultaneously by holding down the third shift key and clicking a second, or even fourth column header!

V
Vitaliy, 2015-10-05
@Scorpiored88

I saw this, but I need an option for it to do this on its own.
I also read about the "sortForce" parameter, but it doesn't work for me :(
You could try another plugin, if you advise)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question