# HG changeset patch # User Mikael Berthe # Date 1404047224 -7200 # Node ID 47e45453b705282226894b4d4f2519e20d26e691 # Parent 1ee01b135e0e28bf221edd908acd1d5e6559f07f Sort files by path when sorting by inode number is not supported diff -r 1ee01b135e0e -r 47e45453b705 goduf-byinode_fallback.go --- a/goduf-byinode_fallback.go Sun Jun 29 14:52:21 2014 +0200 +++ b/goduf-byinode_fallback.go Sun Jun 29 15:07:04 2014 +0200 @@ -11,7 +11,7 @@ func (a ByInode) Len() int { return len(a) } func (a ByInode) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a ByInode) Less(i, j int) bool { - return true + return a[i].FilePath < a[j].FilePath } // OSHasInodes returns true iff the O.S. uses inodes for its filesystems.