My DataTables View is not sorting properly

When creating or editing a View with the DataTables Extension, you can specify a field to sort by and a sort direction like so:

Setting the field and direction to use for sorting a DataTables View

Due to the way the DataTables Extension stores information using the browser, the View may not sort properly in certain instances. You can remedy that by adding the following code to your theme's functions.php file:

If you're not sure how to add code samples to your website, please see the following article: Where to put code samples

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.