quicksearch icon indicating copy to clipboard operation
quicksearch copied to clipboard

Option to sort elements by count of occurence?

Open q2apro opened this issue 7 years ago • 3 comments

I would like to not only filter the elements but also sort them by the highest number of words found within each element.

Test here (sorting by word count does not work yet): https://www.matheretter.de/w/?s=bruch

Is there an option planned?

Or can someone offer a workaround?

Thanks.

q2apro avatar Mar 28 '18 13:03 q2apro

Hi !

I maintain a version here https://github.com/DeuxHuitHuit/quicksearch

You could be able to do it in the 'onAfter' callback

nitriques avatar Apr 05 '18 20:04 nitriques

I did a workaround:

Copy all results (visible) to a new div. Then sort them by the highlight CSS class (counted).

Not perfect, but works and still performaned.

Thanks.

q2apro avatar Apr 05 '18 20:04 q2apro

:+1:

nitriques avatar Apr 05 '18 21:04 nitriques