From 74cbd6c34f56634c3d9d25395e4bea322fc37d47 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 16 Nov 2017 10:27:37 +0000 Subject: [PATCH] gslist: Document that g_slist_sort() is stable Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=508976 --- glib/gslist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/gslist.c b/glib/gslist.c index bc29b4101..7a24fb66d 100644 --- a/glib/gslist.c +++ b/glib/gslist.c @@ -1034,7 +1034,8 @@ g_slist_sort_real (GSList *list, * first element comes before the second, or a positive value if * the first element comes after the second. * - * Sorts a #GSList using the given comparison function. + * Sorts a #GSList using the given comparison function. The algorithm + * used is a stable sort. * * Returns: the start of the sorted #GSList */