Page 1 of 1
Dual pane sort-order instability issue
Posted: 24 May 2013 23:34
by prino
This isn't really a bug, but it indicates that something is interfering with something else...
In a dual pane configuration where all files in the second pane all have exactly the same created/modified/accessed timestamps, changing any time stamp of any file in the first pane, even to itself, causes a change in the order of the files in the second pane.
Actually, this also happens when the first pane displays another directory...
Re: Dual pane sort-order instability issue
Posted: 25 May 2013 09:10
by admin
Sounds like a quicksort artefact: there are sort tasks with more than one correct solution, and it's determined by the initial conditions which of the possible outcomes actually comes out.
But I fail to reproduce the issue. There are so many factors in XY controlling the sort order...
So, for starters: HOW do you timestamp?
Re: Dual pane sort-order instability issue
Posted: 25 May 2013 11:46
by prino
admin wrote:So, for starters: HOW do you timestamp?
Select all files in the directory and then set all times (created/modified/accessed) to the same time in the properties panel.
I have two panes open, one with this particular directory (pane 2), one with another (pane 1).
Once all files in pane 2 have the same timestamps, I go back to pane 1, click on any file, click on any date in the properties pane, just click the green V and the order in which the files in pane 2 are displayed changes.
Also, as I just now found out, selecting other directories in pane 1 on occasion changes (as in removes) the secondary sort order of pane 2!
Re: Dual pane sort-order instability issue
Posted: 25 May 2013 13:45
by admin
What about the sort order of the affected listings?
Re: Dual pane sort-order instability issue
Posted: 25 May 2013 18:39
by prino
admin wrote:What about the sort order of the affected listings?
Columns for both panes:
Name/Size/Type/Modified/Attr
Sorting order pane 2: Primary "Modified" ascending, secondary "Type" descending
Case 1:
Sorting order pane 1: Same as pane 2. "Changing" (even to the same) any date on this pane will cause the files in pane two to be sorted in a different order, but primary and secondary sorting orders are not changed! FWIW, it only affect two groups of files, those of type "h-h" and those of type "rtf".
Case 2:
Go up one level in pane 1, to a directory with a single sorting order, "Name" ascending, and pane two will now also be sorted "Name" ascending. Restore the saved "Active Folder View" of pane 2 to what it was, "Mod" a/"Type" d, and pane 1 will get the same sorting order, so in this case the panes do not seem to be independent.
Re: Dual pane sort-order instability issue
Posted: 25 May 2013 18:47
by admin
IMO you could have mentioned right away that the pane in question was
secondarily sorted...

... would have saved 15 minutes of my saturday afternoon.
Turns out my first guess was right: these are
quicksort artefacts, cannot do anything about it. Especially so short before the game.

BTW, it's no coincidence that most icons here a
black and yellow!

Re: Dual pane sort-order instability issue
Posted: 26 May 2013 15:38
by admin
I could also put it this way: This is one of the small prices you pay for XYplorer being the fastest of all file managers.
Re: Dual pane sort-order instability issue
Posted: 27 May 2013 12:19
by prino
admin wrote:I could also put it this way: This is one of the small prices you pay for XYplorer being the fastest of all file managers.
When you've got a machine that is fast enough to run z/OS, the difference between 1 ms and 1.1 ms is irrelevant.
So let's forget the instability that's inherent to Quicksort, which leaves just the question, "Why does sorting one pane, or changing pane to a directory with another sort order also change the second pane?"
Re: Dual pane sort-order instability issue
Posted: 27 May 2013 12:40
by admin
Good question. The nonactive pane should only be refreshed when it's the same path as the active pane. I could reproduce your issue only with both panes pointing to the same path.

Re: Dual pane sort-order instability issue
Posted: 27 May 2013 12:52
by prino
admin wrote:Good question. The nonactive pane should only be refreshed when it's the same path as the active pane. I could reproduce your issue only with both panes pointing to the same path.

They are in the same path. Remains the question, "Why do something that's not required?" causing you to loose some precious nano-seconds

Re: Dual pane sort-order instability issue
Posted: 27 May 2013 13:00
by admin
prino wrote:admin wrote:Good question. The nonactive pane should only be refreshed when it's the same path as the active pane. I could reproduce your issue only with both panes pointing to the same path.

They are in the same path. Remains the question, "Why do something that's not required?" causing you to loose some precious nano-seconds

No, in that case it IS required. The modified date is displayed in the list, so the list needs to be updated.
Re: Dual pane sort-order instability issue
Posted: 27 May 2013 13:14
by prino
I've now looked at your "same path" statement, but does that mean that when pane one contains "D:\02-IBM\" and pane two "D:\01-lift\vp\test\base\", they are, by virtue of sharing the same drive, on the same path?
Because going down from "D:\02-IBM\" to "D:\02-IBM\01-Hercules\20130524-Hercules\" changes the sort order of pane two twice, first to that of "D:\02-IBM\01-Hercules\" and subsequently to that of the 20130524... directory.
Re: Dual pane sort-order instability issue
Posted: 27 May 2013 13:17
by admin
Could it be that you enabled
Sync Scroll (menu Panes)?

Re: Dual pane sort-order instability issue
Posted: 27 May 2013 16:25
by prino
Maybe in that light a suggestion, if the user changes the directory in a pane, automagically switch of sync scroll - I remember having used it, but that's at least a month ago when I was doing a compare of "D:\02-IBM\01-Hercules\20130419-Hercules\" with its predecessor.
Re: Dual pane sort-order instability issue
Posted: 27 May 2013 16:34
by admin
prino wrote:
Maybe in that light a suggestion, if the user changes the directory in a pane, automagically switch of sync scroll - I remember having used it, but that's at least a month ago when I was doing a compare of "D:\02-IBM\01-Hercules\20130419-Hercules\" with its predecessor.
Seems to make sense, but maybe somebody wants is permanently? hard to say...