Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81689

Custom Sort Order for Filtered Results

$
0
0
Hello,

I have a table that includes first and last name under ONE column. I am being asked of the following and not sure how to implement it nor feel it is a worthy task.

When the user enters filtered text, the resulting searches should be sorted by those rows where the text occurs in the beginning of the first name should be ranked higher and shown at the top of the data result.

For example if I have the following names:

Aaron Kane
Akari Ono
Jack Anderson
Kate Smith
Kathy Jones

and I enter the following in the filter input box, "KA", the result set should be

KAte Smith
KAthy Jones
AKAri Ono
JacK Anderson
Aaron KAne

Thanks

Viewing all articles
Browse latest Browse all 81689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>