Skip to main content

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...
tip

In the example above, we are sorting the "Phone Number" column based on the last 4 digits!