I just uploaded Hans code in plugin form to this page:

http://www.boltwire.com/index.php?p=solutions.search.sort_de

Also, I have the proper hooks in the core code now as well as
mentioned in my last email. I'll try to put out another release here
shortly. Just a couple fixes in it.

Cheers,
Dan

If you want to pretest my code, make these changes--both in
engine.php, around line 1931 and 2025:

the last lines of BOLTsearchPageListPlus should be changed to:

        $BOLTvar['$count_matches'] = count($outarray);
        if (isset($args['sort']) || isset($args['order'])) return
BOLTsort($outarray, $args);
        global $BOLTvar;
                $sortFunc = 'BOLTsort' . $BOLTvar['$language'];
        if ($BOLTvar['$language'] != '' && function_exists('BOLTsort' .
$BOLTvar['$language'])) {
                $sortFunc = 'BOLTsort' . $BOLTvar['$language'];
                return $sortFunc($outarray);    
                }
        natcasesort($outarray);
        return $outarray;
        }

And then the middle part of BOLTsort should be changed to:

                        if (! is_array($sortarray)) return Array();
                        if ($BOLTvar['language'] != '' &&
function_exists("BOLTsort$BOLTvar[language]")) {
                                $sortFunc = "BOLTsort$BOLTvar[language]";
                                $sortarray = $sortFunc($sortarray);     
                                }
                        else natcasesort($sortarray);
                        $outarray = array_keys($sortarray);
                        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to