changeset 12014:bdf8081b1bc1

[gaim-migrate @ 14307] Sort the commands displayed by "/help" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 09 Nov 2005 01:15:47 +0000
parents 39734dd473e0
children 5a63ea24ac83
files src/cmds.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmds.c	Wed Nov 09 00:59:09 2005 +0000
+++ b/src/cmds.c	Wed Nov 09 01:15:47 2005 +0000
@@ -331,6 +331,8 @@
 		ret = g_list_append(ret, c->cmd);
 	}
 
+	ret = g_list_sort(ret, (GCompareFunc)strcmp);
+
 	return ret;
 }
 
@@ -361,6 +363,8 @@
 		ret = g_list_append(ret, c->help);
 	}
 
+	ret = g_list_sort(ret, (GCompareFunc)strcmp);
+
 	return ret;
 }