Sort is broken
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3812
Reported by Fredrik Noring, Roxen Internet Software noring@roxen.com
The following works in Pike 7.2 but fails in Pike 7.4:
int main()
{
array a = ({ /* 94 elements */
90839040,
96352256,
80316416,
88322048,
73676800,
77709312,
101908480,
72744960,
54609920,
251849736,
62978048,
106463232,
820152320,
111521792,
43429888,
72683520,
99155968,
106059776,
69969920,
131769352,
34936832,
54810624,
90839040,
94869504,
94869504,
106463232,
56076288,
106059776,
99418112,
115529728,
100892672,
64229376,
100124672,
110780416,
101908480,
290721792,
58802176,
111521792,
68894720,
58322944,
93726720,
95713280,
79521792,
157540352,
69969920,
115529728,
108609536,
72300544,
72744960,
88031232,
95713280,
120080384,
110376960,
63164416,
86994944,
103079936,
68622336,
54810624,
60518400,
103079936,
107485184,
58411008,
366772224,
72769536,
58322944,
291342336,
97054720,
64915456,
68485120,
72769536,
99155968,
4792706056,
121389056,
60237824,
56006656,
60237824,
60518400,
68485120,
108003328,
88322048,
58802176,
108072960,
195770368,
93726720,
88031232,
73601024,
110780416,
54609920,
53366784,
142299136,
70117376,
64229376,
85239808,
53366784
});
a = map((array(string))a, Gmp.mpz, 10);
array b = (array(string))a;
sort(a, b);
write("%O\n", a);
return 0;
}