From d06e44ff78efb6e95ff9d6dfc592db6d6f6bd032 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 21 Apr 2002 08:30:06 +0000 Subject: [PATCH] Finally I realized why we were using secondary sorting on site_id by default :-) I was originally searching for some magic inside the search server which needed that to work and completely missed the simple fact that the front-end wants the results this way :-) So I'm resurrecting it, but now as an ordinary instance of the secondary sorting code I've introduced yesterday. The CUSTOM_SORTING switch is gone, sorting by site ID and page age works always. Also, I've simplified reverse sorting by introducing a separate XOR mask. --- lib/custom.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/custom.h b/lib/custom.h index 250a7bac..f4a57115 100644 --- a/lib/custom.h +++ b/lib/custom.h @@ -98,9 +98,6 @@ enum string_type { * A good place for definitions of the functions is lib/custom.c. * * Please order the attributes by decreasing size to get optimum padding. - * - * If you also want the search server to sort by a custom attribute - * on ties, define CUSTOM_SORTING. */ #if 0 /* Example */ @@ -111,8 +108,6 @@ struct card_attr; void custom_get_lm(struct card_attr *ca, byte *attr); byte *custom_parse_lm(u32 *dest, byte *value, uns intval); -#define CUSTOM_SORTING - #else #define CUSTOM_ATTRS -- 2.39.2