I have a search box on my website which currently searches by keyword and phrase. When you search for something by keyword over 700 items show up and from low to high price.
I have been searching to find a way to sort the results by the most relevant, matching the most keywords but found no way. At the moment my code looks like this:
<div class="sortby" style="float:right;">
<label for="sort">Sort by:</label>
<select name="sort" onchange="javascript: changeSorting(this.value);">
<option value="LTH" <?php echo (isset($sort) && $sort=='LTH')?'selected':'';?>>Price (Low to High)</option>
<option value="HTL" <?php echo (isset($sort) && $sort=='HTL')?'selected':'';?>>Price (High to Low)</option>
<option value="ATZ" <?php echo (isset($sort) && $sort=='ATZ')?'selected':'';?>>A-Z</option>
</select>
</div>
Any help would be most appreciated!
Thank you