summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fringlib/fringwalker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fringlib/fringwalker.py b/src/fringlib/fringwalker.py
index 9611681..d897123 100644
--- a/src/fringlib/fringwalker.py
+++ b/src/fringlib/fringwalker.py
@@ -23,10 +23,10 @@ def print_tree( treearray, tab=0 ):
for e in data:
print_tree(e,tab+1)
-def treearray_cmp_by_size( a, b ):
+def treearray_cmp_by_size( b, a ):
return cmp(a[2], b[2]) # compare sizes
-def treearray_cmp_fn( a, b ):
+def treearray_cmp_fn( b, a ):
""" a and b are tuples describing a directory tree. Compare first by directory
status, then by size, and finally by name. """