Add a sorting option to a number column using custom class – text_with_number

Estimated reading: 1 minute 665 views

Important Note: Sorting only works on the current page's data. By default, table column sorting is on.

You can sort columns containing numbers with text like "1st", "2nd", "3rd", and "4th" by adding a custom class. By applying the "text_with_number" class to the column, you can ensure accurate sorting of these mixed data types.

After adding this custom class, your column will sort numbers correctly. See below screenshot

That's All.

Share this Doc

Add a sorting option to a number column using custom class – text_with_number

Or copy link

CONTENTS