Page 1 of 1

Renamed files out of order

PostPosted: Tue Oct 11, 2016 2:36 pm
by CapeData
I have been successfully using BRC to rename a sequence of 900 images, cam8_xx_000 - cam8_xx_900.

However, after increasing the number of stored images to >1000, I have experienced problems with the renamed images not being in the proper time order. For example, all renamed images up to 100 are in the proper order, but then images that were originally 1000-1009 appear. After that, the sequence continues to be erratic.

I've tried many modifications to the command string, but can't sort this out.

I would appreciate any assistance.

Edit: I installed BRU to see if I could gain some insight and I believe I see what's happening: the program loads the files in this "incorrect" order, i.e., 99, 100, 1000

Re: Renamed files out of order

PostPosted: Tue Oct 11, 2016 6:28 pm
by therube
Sounds like an Alpha Sort vs Natural Sort issue (but your examples aren't give me enough to go on).

Re: Renamed files out of order

PostPosted: Tue Oct 11, 2016 10:51 pm
by CapeData
therube wrote:Sounds like an Alpha Sort vs Natural Sort issue (but your examples aren't give me enough to go on).


I believe you are correct..

If I select "Logical Sorting" in the GUI, the files are sorted properly, however, BRC doesn't offer this option.

Re: Renamed files out of order

PostPosted: Thu Oct 13, 2016 3:37 pm
by therube
If you first pad (prefix the 000-900) with a '0', that would put things back into order, up to 9999.
At 10,000, you'd need to prefix another '0'.
So 000 becomes 0000 & 999 becomes 0999.

I actually just ran into something similar, a sequence of files n_(*)_0_0.xxx, where (*) was an incrementing number, so; 1,2,3...10,11,12,...100,101,102...

In that case, with a different tool, first I searched for n_\d_0_0.xxx, which gave me 1-9, then used a regex similar to:
from: n_\d_0_0.xxx
to: n_00\d_0_0.xxx

Then I searched for n_\d\d_0_0.xxx, which gave me 10-99, then used a regex similar to:
from: n_\d\d_0_0.xxx
to: n_0\d\d_0_0.xxx

That put everything in the order I needed.

Re: Renamed files out of order

PostPosted: Fri Oct 14, 2016 12:54 pm
by CapeData
@therube

Thanks for the suggestion, I believe that would work.

I'll be away for two weeks, but will give it a try when I get back . In the meantime, I am using another renaming utility which, natively, sorted the files in the desired order.