Collections functions
General functions
Render functions
Theme permission functions
Resource functions

sorthighlights()

Parameters

ColumnTypeDefaultDescription
$a
$b

Location

include/search_functions.php lines 2377 to 2384

Definition

 
function sorthighlights($a$b)
    {
    
# fixes an odd problem for str_highlight related to the order of keywords
    
if (strlen($a) < strlen($b)) {
        return 
0;
        }
    return (
$a $b) ? -1;
    }

This article was last updated 5th October 2022 11:35 Europe/London time based on the source file dated 5th October 2022 10:30 Europe/London time.