From: handa Date: Sun, 10 Jun 2007 13:51:25 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-0-9-0~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=aec9bb02f0534e6666eadd54c8f07c892a57ee73;p=m17n%2Fm17n-im-config.git *** empty log message *** --- diff --git a/src/mim-config.c b/src/mim-config.c index 42c7cf3..d172924 100644 --- a/src/mim-config.c +++ b/src/mim-config.c @@ -273,6 +273,8 @@ sort_im (const void *p1, const void *p2) return (t1->encoded_lang ? -1 : 1); if (t1->encoded_lang) result = strcoll (t1->encoded_lang, t2->encoded_lang); + else if ((! t1->lang) != (! t2->lang)) + return (t1->lang ? -1 : 1); else result = strcmp (t1->lang, t2->lang); }