Answer the question
In order to leave comments, you need to log in
Rating system for individual parts of pages/posts?
I would like to tie to individual places on the page (the page tells about several places in one city).
But all the solutions that I could find either rank the whole page/post or individual comments.
Can anyone suggest a solution for individual parts of the page?
For example for headers or attachments?
Thanks
Answer the question
In order to leave comments, you need to log in
Isn't it easier in this case to find all occurrences of "garr" and then just sort the result so that first there are only garr, and then everything else?
let a = ['Гарри йцу', 'Кто такой Гарри?', 'А что хочет Гарри?', 'Гарри угу', 'Гарри и кто такой этот ДЖС', 'Шо?'];
a.sort((w,e) => (/^Гарри/gi.test(w) ? -1 : 1)) // ["Гарри и кто такой этот ДЖС", "Гарри угу", "Гарри йцу", "Кто такой Гарри?", "А что хочет Гарри?", "Шо?"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question