Index: nodehierarchy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodehierarchy/nodehierarchy.module,v
retrieving revision 1.4.2.14
diff -u -p -r1.4.2.14 nodehierarchy.module
--- nodehierarchy.module	15 Feb 2009 05:58:02 -0000	1.4.2.14
+++ nodehierarchy.module	17 Feb 2009 11:52:47 -0000
@@ -960,7 +960,7 @@ function _nodehierarchy_normalize_child_
  * Get the next valid sort order for the given parent.
  */
 function _nodehierarchy_get_next_child_order($parent_nid) {
-  $order_by = -1;
+  $order_by = 0;
   $result = db_query("SELECT h.order_by FROM {nodehierarchy} h WHERE h.parent = %d ORDER BY h.order_by DESC LIMIT 1", $parent_nid);
   if ($order = db_fetch_array($result)) {
     $order_by = $order['order_by'];
