forwarded 479860 http://bugzilla.gnome.org/show_bug.cgi?id=531973
thanks

Le mercredi 07 mai 2008 à 13:50 +1200, jasen a écrit :
> Package: libglib2.0-doc
> Version: 2.16.1-2
> Severity: wishlist
> 
> 
> the documentation for g_list_sort does not specify what happens to elements
> that compare as equal (comparison function returns 0). Is the previous
> ordering guaranteed to be maintained or not?

If it is not documented, it is not guaranteed :)

However the current implementation is a merge sort which is a stable
sort, so you can probably rely on it; there are ideas for replacing it
with another algorithm (bugzilla #113203) but it seems very unlikely to
be replaced with a non-stable one.

It might indeed be a good idea to document that and guarantee it in the
future, so I have forwarded this request upstream.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to