[sword-svn] r1907 - trunk/bindings/corba/orbitcpp
scribe at crosswire.org
scribe at crosswire.org
Mon Apr 24 23:00:57 MST 2006
Author: scribe
Date: 2006-04-24 23:00:55 -0700 (Mon, 24 Apr 2006)
New Revision: 1907
Modified:
trunk/bindings/corba/orbitcpp/swordorb-impl.cpp
Log:
default sort is by verse
Modified: trunk/bindings/corba/orbitcpp/swordorb-impl.cpp
===================================================================
--- trunk/bindings/corba/orbitcpp/swordorb-impl.cpp 2006-04-19 20:03:42 UTC (rev 1906)
+++ trunk/bindings/corba/orbitcpp/swordorb-impl.cpp 2006-04-25 06:00:55 UTC (rev 1907)
@@ -174,6 +174,11 @@
for (result = sword::TOP; !result.Error(); result++) count++;
retVal->length(count);
int i = 0;
+
+ // if we're sorted by score, let's re-sort by verse, because Java can always re-sort by score
+ if ((long)result.getElement()->userData)
+ result.sort();
+
for (result = sword::TOP; !result.Error(); result++) {
(*retVal)[i].modName = CORBA::string_dup(delegate->Name());
(*retVal)[i].key = CORBA::string_dup((const char *)result);
More information about the sword-cvs
mailing list