2010-05-05 22:22:09 +02:00
|
|
|
Index: src/sort.c
|
|
|
|
===================================================================
|
|
|
|
--- src/sort.c.orig 2010-05-04 17:29:12.395359111 +0200
|
|
|
|
+++ src/sort.c 2010-05-04 17:29:59.979859336 +0200
|
|
|
|
@@ -2494,7 +2494,10 @@ keycompare_mb (const struct line *a, con
|
2007-07-23 19:57:03 +02:00
|
|
|
size_t lenb = limb <= textb ? 0 : limb - textb;
|
|
|
|
|
|
|
|
/* Actually compare the fields. */
|
|
|
|
- if (key->numeric | key->general_numeric)
|
|
|
|
+
|
|
|
|
+ if (key->random)
|
|
|
|
+ diff = compare_random (texta, lena, textb, lenb);
|
|
|
|
+ else if (key->numeric | key->general_numeric)
|
|
|
|
{
|
|
|
|
char savea = *lima, saveb = *limb;
|
|
|
|
|