Page 1 of 1

Sorting order of directory comparison

Posted: Fri Dec 17, 2004 10:12 am
by Mark852
Examdiff should respect the file names within a filder structure if the view is sorted by the "relative path" column.

Example:

Assuming you have the following folder structures:

Code: Select all

C:\FOO          C:\BAR
¦   fileA       ¦   fileA
¦   fileB       ¦   fileC
¦               ¦
+---sub         +---sub
        fileA           fileA
        fileB           fileC
        fileC          
If I do a comparison of the two folders using "examdiff C:\foo C:\bar", I get a result like this
( /\ means sorting order of the column; the sorting order of the missing files varies, depending on some unknown factors):

Code: Select all

C:\foo
File Name       Relative Path /\  ... Status
fileA           .\                    Same
fileB           .\                    Deleted
fileA           .\sub\                Same
fileC           .\sub\                Same
fileB           .\sub\                Deleted
<empty line>
----------------------------------------------
C:\bar
File Name       Relative Path     ... Status
fileA           .\                    Same
<empty line>
fileA           .\sub\                Same
fileC           .\sub\                Same
<empty line>
fileC           .\                    Added

Or, if I sort by the lower pane:

Code: Select all

C:\foo
File Name       Relative Path     ... Status
fileA           .\                    Same
<empty line>
fileA           .\sub\                Same
fileC           .\sub\                Same
fileB           .\sub\                Deleted
fileB           .\                    Deleted
----------------------------------------------
C:\bar
File Name       Relative Path /\  ... Status
fileA           .\                    Same
fileC           .\                    Added
fileA           .\sub\                Same
fileC           .\sub\                Same
<empty line>
<empty line>

What I would like to have is a result like this (respecting the file names within the folders):

Code: Select all

C:\foo
File Name       Relative Path /\  ... Status
fileA           .\                    Same
fileB           .\                    Deleted
<empty line>
fileA           .\sub\                Same
fileB           .\sub\                Deleted
fileC           .\sub\                Same
----------------------------------------------
C:\bar
File Name       Relative Path     ... Status
fileA           .\                    Same
<empty line>
fileC           .\                    Added
fileA           .\sub\                Same
<empty line>
fileC           .\sub\                Same

This would it make much more easier to compare two folder structures for a synchronisation of them.

And there should be an option how the order of file names should be.
Either normal ordering (file1, file10, file2) or the new Windows XP ordering scheme (file1, file2, file10).[/quote]

Posted: Fri Dec 17, 2004 11:51 am
by psguru
Use Options | Dir Comparison | Initial Sorting | Sort = "Both directories", Column = "Path" (in this mode no arrow will appear on directory view columns).

Posted: Fri Dec 17, 2004 1:07 pm
by Mark852
THanks,

that exactly what I'm looking for.

I missed this option all the times.