--- wordpress_import.module.orig	2009-04-26 09:35:01.000000000 +0300
+++ wordpress_import.module	2009-04-25 22:30:38.000000000 +0300
@@ -461,6 +461,12 @@
       'categories_vocabulary' => $category_vocabulary
       );
   }
+  
+  // diego - $wordpress['categories']) is not an array
+    return array(
+      'categories_map' => null,
+      'categories_vocabulary' => null
+      );
 }
 
 /**
@@ -688,6 +694,9 @@
   // Sorting comments by timestamp so the thread won't be messed up in Drupal
 
   ksort($drupal_comment);
+  
+  // diego - messages should be sorted in reverse order
+  $drupal_comment = array_reverse($drupal_comment);
 
   // Saving comments
 
