Page 1 of 1

Sorting Issue

Posted: Wed Sep 18, 2019 3:18 am
by Nemv9
- 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?

Re: Sorting Issue

Posted: Tue Oct 08, 2019 8:21 pm
by cobian
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 ;)

Re: Sorting Issue

Posted: Thu Oct 10, 2019 3:14 am
by Nemv9
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.

Re: Sorting Issue

Posted: Wed Nov 06, 2019 7:13 pm
by cobian
Oh yes, that will be the case. The names are not identical so the rule here is: the one with the extra character (the space) gets sorted last.

Re: Sorting Issue

Posted: Thu Nov 07, 2019 5:11 pm
by Nemv9
cobian wrote:
Wed Nov 06, 2019 7:13 pm
the one with the extra character (the space) gets sorted last.
Last or first? I'm confused :?