devhelp r1132 - in trunk: . src
- From: rhult svn gnome org
- To: svn-commits-list gnome org
- Subject: devhelp r1132 - in trunk: . src
- Date: Sat, 4 Oct 2008 15:51:18 +0000 (UTC)
Author: rhult
Date: Sat Oct 4 15:51:17 2008
New Revision: 1132
URL: http://svn.gnome.org/viewvc/devhelp?rev=1132&view=rev
Log:
2008-10-04 Richard Hult <richard imendio com>
Bug 514001 â search results not sorted alphabetically
* src/dh-link.c (dh_link_compare): Don't sort hits after
book/page.
Modified:
trunk/ChangeLog
trunk/src/dh-link.c
Modified: trunk/src/dh-link.c
==============================================================================
--- trunk/src/dh-link.c (original)
+++ trunk/src/dh-link.c Sat Oct 4 15:51:17 2008
@@ -120,6 +120,11 @@
return flags_diff;
}
+ return strcmp (la->name, lb->name);
+
+ /* We used to sort on book/page first before, which I can't really
+ * understand why. Keep the old code here for a while.
+ */
book_diff = strcmp (dh_link_get_book_name (la), dh_link_get_book_name (lb));
if (book_diff == 0) {
page_diff = strcmp (dh_link_get_page_name (la), dh_link_get_page_name (lb));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]