• Resolved spiros

    (@spiros)


    Is this possible?

    For example there could be cells like these:

    this is a big row
    this is a small row
    this is a another row
    another row
    small row
    row

    in which case the preferred first match when searching “row” should be the cell which contains just that.

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I’ll have to disappoint you here. I’m not aware of a directly usable solution for that. The external DataTables JavaScript library that is used for this does not offer a feature for this, from everything I know. The reason is that there’s no such thing as a “first match”. The search/filter algorithm simply takes the rows as shown and goes over them one by one, checking for the search word. If it’s found, the row is shown, otherwise it’s hidden. There’s however not “result priority” for the search results.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Show shortest text first when searching’ is closed to new replies.