Custom sort
You can customize the sort plugin by using the compare
function. Each column accepts a custom compare
function.
In this example, we are sorting the "Phone Number" column based on the last 4 digits:
Live Editor
Result
Loading...
You can customize the sort plugin by using the compare
function. Each column accepts a custom compare
function.
In this example, we are sorting the "Phone Number" column based on the last 4 digits: