e8115bede0
Copy from Base:System/coreutils based on submit request 39394 from user psmt OBS-URL: https://build.opensuse.org/request/show/39394 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=39
17 lines
580 B
Diff
17 lines
580 B
Diff
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
|
|
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;
|
|
|