Sort by last name
Sort by last name

Is there a way to sort by last name instead of the first name on a full name column?
This discussion has been closed.
Is there a way to sort by last name instead of the first name on a full name column?
Answers
You would enable regex search and disable smart search of
column().search()
to ignore the firstname portion of the column.This example may help you get started:
https://datatables.net/examples/api/regex.html
Kevin