Sorting Issue

Questions about Cobian Backup
Post Reply
Nemv9
Posts: 6
Joined: Mon Sep 16, 2019 1:58 am

Sorting Issue

Post by Nemv9 » Wed Sep 18, 2019 3:18 am

- sort source files alphabetically or as explorer

- expected: all files are sorted accordingly

- actual: files/folder with a space character in the filename/path will be added at the top

thanks

PS. Do the source code sale terms allow you to issue updates to Gravity?

User avatar
cobian
Site Admin
Posts: 168
Joined: Fri Mar 22, 2019 8:57 pm
Location: Umeå, Sweden
Contact:

Re: Sorting Issue

Post by cobian » Tue Oct 08, 2019 8:21 pm

Cannot really reproduce the issue. Must the space be at the beginning of the name? The sorting is actually done not by file name but by the whole path ;)
--
Luis Cobian
Cobian Backup's creator and Developer
https://www.cobiansoft.com

Nemv9
Posts: 6
Joined: Mon Sep 16, 2019 1:58 am

Re: Sorting Issue

Post by Nemv9 » Thu Oct 10, 2019 3:14 am

cobian wrote:
Tue Oct 08, 2019 8:21 pm
Cannot really reproduce the issue. Must the space be at the beginning of the name? The sorting is actually done not by file name but by the whole path ;)
I figured. It's space anywhere in the path.

In the .lst file, they are enclosed by two double quotes ""path with space"", which I think will put them before the others because of the quote character precedence over alphabet characters.

Create two source files:
C:\AFolder\file.txt
D:\A Folder\file.txt (with the space)

Sort alphabetically > the folder in D:\ will be first.

Thanks for your response.

Post Reply