[gnome-builder] ctags: adjust sort ordering
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ctags: adjust sort ordering
- Date: Sat, 16 May 2015 08:34:25 +0000 (UTC)
commit a56a2d6af4cdf549070af05fc9c29d0b4fec14d5
Author: Christian Hergert <christian hergert me>
Date: Sat May 16 01:33:23 2015 -0700
ctags: adjust sort ordering
This helps us get very similar things next to each other in the index.
libide/ctags/ide-ctags-index.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/ctags/ide-ctags-index.c b/libide/ctags/ide-ctags-index.c
index a800a8c..dea733d 100644
--- a/libide/ctags/ide-ctags-index.c
+++ b/libide/ctags/ide-ctags-index.c
@@ -89,9 +89,9 @@ ide_ctags_index_entry_compare (gconstpointer a,
gint ret;
if (((ret = g_strcmp0 (entrya->name, entryb->name)) == 0) &&
- ((ret = g_strcmp0 (entrya->path, entryb->path)) == 0) &&
+ ((ret = (entrya->kind - entryb->kind)) == 0) &&
((ret = g_strcmp0 (entrya->pattern, entryb->pattern)) == 0) &&
- ((ret = (entrya->kind - entryb->kind))))
+ ((ret = g_strcmp0 (entrya->path, entryb->path)) == 0))
return 0;
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]