on any of the custom attributes. Just define CUSTOM_SORTING in lib/custom.h.
I've also removed secondary sorting of result heap by site ID inside refs.c
-- according to my best knowledge it wasn't required anywhere.
Maybe we can remove the CUSTOM_SORTING switch and just leave the sec_sort_key
in struct result_note initialized to zero, but it would cost us 4 bytes per
result_note which I wanted to avoid.
* 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 */
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
/*
* Sherlock: Data structures used in indices
*
- * (c) 2001 Martin Mares <mj@ucw.cz>
+ * (c) 2001--2002 Martin Mares <mj@ucw.cz>
*/
/* Words */