Skip to content Skip to sidebar Skip to footer

Jquery Sort Json Array By Relevance Based On A Search Term

I have an array with some search results which are to be displayed in a jQuery datatable. I need to sort the rows I got based on the search term. I mean the most matched rows with

Solution 1:

It sounds like you want fuzzy string matching. Check out fuzzyset.js for a javascript solution.

http://glench.github.io/fuzzyset.js

Post a Comment for "Jquery Sort Json Array By Relevance Based On A Search Term"