diff -u gnome-commander-1.2.8.2/debian/changelog gnome-commander-1.2.8.2/debian/changelog
--- gnome-commander-1.2.8.2/debian/changelog
+++ gnome-commander-1.2.8.2/debian/changelog
@@ -1,3 +1,11 @@
+gnome-commander (1.2.8.2-0ubuntu2) karmic; urgency=low
+
+  * Added quilt patch system.
+  * debian/patches/01_sort_by_size_fix.patch: added my_filesizecmp 
+    method with GnomeVFSFileSize params instead of gint (LP: #369818).
+
+ -- Marcin Wider <mwider@gmail.com>  Fri, 30 Oct 2009 15:27:16 +0100
+
 gnome-commander (1.2.8.2-0ubuntu1) karmic; urgency=low
 
   * New upstream release (LP: #436429).
only in patch2:
unchanged:
--- gnome-commander-1.2.8.2.orig/debian/patches/series
+++ gnome-commander-1.2.8.2/debian/patches/series
@@ -0,0 +1 @@
+01_sort_by_size_fix.patch
only in patch2:
unchanged:
--- gnome-commander-1.2.8.2.orig/debian/patches/01_sort_by_size_fix.patch
+++ gnome-commander-1.2.8.2/debian/patches/01_sort_by_size_fix.patch
@@ -0,0 +1,32 @@
+Index: gnome-commander-1.2.8.2/src/gnome-cmd-file-list.cc
+===================================================================
+--- gnome-commander-1.2.8.2.orig/src/gnome-cmd-file-list.cc	2009-10-30 15:25:31.000000000 +0100
++++ gnome-commander-1.2.8.2/src/gnome-cmd-file-list.cc	2009-10-30 15:26:29.000000000 +0100
+@@ -775,6 +775,18 @@
+ }
+ 
+ 
++inline gint my_filesizecmp (GnomeVFSFileSize i1, GnomeVFSFileSize i2, gboolean raising)
++{
++    if (i1 > i2)
++        return raising ? -1 : 1;
++
++    if (i2 > i1)
++        return raising ? 1 : -1;
++
++    return 0;
++}
++
++
+ static gint sort_by_name (GnomeCmdFile *f1, GnomeCmdFile *f2, GnomeCmdFileList *fl)
+ {
+     if (strcmp (f1->info->name, "..") == 0)
+@@ -873,7 +885,7 @@
+ 
+     if (!ret)
+     {
+-        ret = my_intcmp (f1->info->size, f2->info->size, raising);
++        ret = my_filesizecmp (f1->info->size, f2->info->size, raising);
+         if (!ret)
+             ret = my_strcmp (gnome_cmd_file_get_collation_fname (f1), gnome_cmd_file_get_collation_fname (f2), file_raising);
+     }
