Comment 62 for bug 790183

Revision history for this message
In , Bugzilla-x (bugzilla-x) wrote :

(In reply to comment #25)
> @@ +330,5 @@
> > + i1 = 0;
> > + if (i2 >= size)
> > + i2 = size-1;
> > + memmove(sortbuf, data+i1, (i2-i1+1)*sizeof(int));
> > + qsort(sortbuf, i2-i1+1, sizeof(int), cmpint);
>
> I wonder if there's glib wrapper for that one...

https://developer.gnome.org/glib/2.34/glib-Miscellaneous-Utility-Functions.html#g-qsort-with-data

Might not be necessary to use the GLib wrapper.