alphabetical vs natural sorting in c++ #3

Closed
opened 2018-11-11 17:40:09 +01:00 by gauthiier · 5 comments
Owner

Author: @tomschofield Posted at: 19.02.2012 20:43

The files which are saved in sequence like this:

5_0.00_0.jpg
6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

load like this:

6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
5_0.00_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

which means that the files are displaying in unexpected order - eg in colour_multi there are flashes of red throughout since these are the first files in the folder.

the problems is better described here http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html

Author: @tomschofield Posted at: 19.02.2012 20:43 The files which are saved in sequence like this: 5_0.00_0.jpg 6_0.00_0.jpg 7_0.00_0.jpg . . . 47_216.66_0.jpg 48_215.71_0.jpg 49_214.96_0.jpg 50_214.01_0.jpg 51_213.26_0.jpg load like this: 6_0.00_0.jpg 7_0.00_0.jpg . . . 47_216.66_0.jpg 48_215.71_0.jpg 49_214.96_0.jpg 5_0.00_0.jpg 50_214.01_0.jpg 51_213.26_0.jpg which means that the files are displaying in unexpected order - eg in colour_multi there are flashes of red throughout since these are the first files in the folder. the problems is better described here http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html
Author
Owner

Author: @heavyside Posted at: 19.02.2012 21:16

Thanks T

Could you resend this to david and myself?

J

sent from my phone

On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote:

The files which are saved in sequence like this:

5_0.00_0.jpg
6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

load like this:

6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
5_0.00_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

which means that the files are displaying in unexpected order - eg in colour_multi there are flashes of red throughout since these are the first files in the folder.

the problems is better described here http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3

Author: @heavyside Posted at: 19.02.2012 21:16 Thanks T Could you resend this to david and myself? J sent from my phone On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote: > The files which are saved in sequence like this: > > 5_0.00_0.jpg > 6_0.00_0.jpg > 7_0.00_0.jpg > . > . > . > 47_216.66_0.jpg > 48_215.71_0.jpg > 49_214.96_0.jpg > 50_214.01_0.jpg > 51_213.26_0.jpg > > load like this: > > 6_0.00_0.jpg > 7_0.00_0.jpg > . > . > . > 47_216.66_0.jpg > 48_215.71_0.jpg > 49_214.96_0.jpg > 5_0.00_0.jpg > 50_214.01_0.jpg > 51_213.26_0.jpg > > which means that the files are displaying in unexpected order - eg in colour_multi there are flashes of red throughout since these are the first files in the folder. > > the problems is better described here http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/gauthiier/RefractiveIndex/issues/3
Author
Owner

Author: @tomschofield Posted at: 19.02.2012 21:18

That came from github automatically dude so should have gone to David too
On Feb 19, 2012 9:16 PM, "Jamie Allen" <
reply@reply.github.com>
wrote:

Thanks T

Could you resend this to david and myself?

J

sent from my phone

On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote:

The files which are saved in sequence like this:

5_0.00_0.jpg
6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

load like this:

6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
5_0.00_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

which means that the files are displaying in unexpected order - eg in
colour_multi there are flashes of red throughout since these are the first
files in the folder.

the problems is better described here
http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326

Author: @tomschofield Posted at: 19.02.2012 21:18 That came from github automatically dude so should have gone to David too On Feb 19, 2012 9:16 PM, "Jamie Allen" < reply@reply.github.com> wrote: > Thanks T > > Could you resend this to david and myself? > > J > > sent from my phone > > On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote: > > > The files which are saved in sequence like this: > > > > 5_0.00_0.jpg > > 6_0.00_0.jpg > > 7_0.00_0.jpg > > . > > . > > . > > 47_216.66_0.jpg > > 48_215.71_0.jpg > > 49_214.96_0.jpg > > 50_214.01_0.jpg > > 51_213.26_0.jpg > > > > load like this: > > > > 6_0.00_0.jpg > > 7_0.00_0.jpg > > . > > . > > . > > 47_216.66_0.jpg > > 48_215.71_0.jpg > > 49_214.96_0.jpg > > 5_0.00_0.jpg > > 50_214.01_0.jpg > > 51_213.26_0.jpg > > > > which means that the files are displaying in unexpected order - eg in > > colour_multi there are flashes of red throughout since these are the first > > files in the folder. > > > > the problems is better described here > > http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html > > > > --- > > > > Reply to this email directly or view it on GitHub: > > https://github.com/gauthiier/RefractiveIndex/issues/3 > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326
Author
Owner

Author: @heavyside Posted at: 19.02.2012 21:22

Ah ok sorry
On my phone for email ... Really annoying ;)

sent from my phone

On 19 Feb 2012, at 22:18, Tom Schofield reply@reply.github.com wrote:

That came from github automatically dude so should have gone to David too
On Feb 19, 2012 9:16 PM, "Jamie Allen" <
reply@reply.github.com>
wrote:

Thanks T

Could you resend this to david and myself?

J

sent from my phone

On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote:

The files which are saved in sequence like this:

5_0.00_0.jpg
6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

load like this:

6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
5_0.00_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

which means that the files are displaying in unexpected order - eg in
colour_multi there are flashes of red throughout since these are the first
files in the folder.

the problems is better described here
http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045341

Author: @heavyside Posted at: 19.02.2012 21:22 Ah ok sorry On my phone for email ... Really annoying ;) sent from my phone On 19 Feb 2012, at 22:18, Tom Schofield reply@reply.github.com wrote: > That came from github automatically dude so should have gone to David too > On Feb 19, 2012 9:16 PM, "Jamie Allen" < > reply@reply.github.com> > wrote: > > > Thanks T > > > > Could you resend this to david and myself? > > > > J > > > > sent from my phone > > > > On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote: > > > > > The files which are saved in sequence like this: > > > > > > 5_0.00_0.jpg > > > 6_0.00_0.jpg > > > 7_0.00_0.jpg > > > . > > > . > > > . > > > 47_216.66_0.jpg > > > 48_215.71_0.jpg > > > 49_214.96_0.jpg > > > 50_214.01_0.jpg > > > 51_213.26_0.jpg > > > > > > load like this: > > > > > > 6_0.00_0.jpg > > > 7_0.00_0.jpg > > > . > > > . > > > . > > > 47_216.66_0.jpg > > > 48_215.71_0.jpg > > > 49_214.96_0.jpg > > > 5_0.00_0.jpg > > > 50_214.01_0.jpg > > > 51_213.26_0.jpg > > > > > > which means that the files are displaying in unexpected order - eg in > > > colour_multi there are flashes of red throughout since these are the first > > > files in the folder. > > > > > > the problems is better described here > > > http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html > > > > > > --- > > > > > > Reply to this email directly or view it on GitHub: > > > https://github.com/gauthiier/RefractiveIndex/issues/3 > > > > --- > > > > Reply to this email directly or view it on GitHub: > > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326 > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045341
Author
Owner

Author: @tomschofield Posted at: 19.02.2012 21:26

No its cool I'm always doing that
On Feb 19, 2012 9:22 PM, "Jamie Allen" <
reply@reply.github.com>
wrote:

Ah ok sorry
On my phone for email ... Really annoying ;)

sent from my phone

On 19 Feb 2012, at 22:18, Tom Schofield reply@reply.github.com wrote:

That came from github automatically dude so should have gone to David too
On Feb 19, 2012 9:16 PM, "Jamie Allen" <
reply@reply.github.com>
wrote:

Thanks T

Could you resend this to david and myself?

J

sent from my phone

On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote:

The files which are saved in sequence like this:

5_0.00_0.jpg
6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

load like this:

6_0.00_0.jpg
7_0.00_0.jpg
.
.
.
47_216.66_0.jpg
48_215.71_0.jpg
49_214.96_0.jpg
5_0.00_0.jpg
50_214.01_0.jpg
51_213.26_0.jpg

which means that the files are displaying in unexpected order - eg in
colour_multi there are flashes of red throughout since these are the
first
files in the folder.

the problems is better described here

http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3


Reply to this email directly or view it on GitHub:

https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326


Reply to this email directly or view it on GitHub:

https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045341


Reply to this email directly or view it on GitHub:
https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045367

Author: @tomschofield Posted at: 19.02.2012 21:26 No its cool I'm always doing that On Feb 19, 2012 9:22 PM, "Jamie Allen" < reply@reply.github.com> wrote: > Ah ok sorry > On my phone for email ... Really annoying ;) > > sent from my phone > > On 19 Feb 2012, at 22:18, Tom Schofield reply@reply.github.com wrote: > > > That came from github automatically dude so should have gone to David too > > On Feb 19, 2012 9:16 PM, "Jamie Allen" < > > reply@reply.github.com> > > wrote: > > > > > Thanks T > > > > > > Could you resend this to david and myself? > > > > > > J > > > > > > sent from my phone > > > > > > On 19 Feb 2012, at 21:43, Tom Schofield reply@reply.github.com wrote: > > > > > > > The files which are saved in sequence like this: > > > > > > > > 5_0.00_0.jpg > > > > 6_0.00_0.jpg > > > > 7_0.00_0.jpg > > > > . > > > > . > > > > . > > > > 47_216.66_0.jpg > > > > 48_215.71_0.jpg > > > > 49_214.96_0.jpg > > > > 50_214.01_0.jpg > > > > 51_213.26_0.jpg > > > > > > > > load like this: > > > > > > > > 6_0.00_0.jpg > > > > 7_0.00_0.jpg > > > > . > > > > . > > > > . > > > > 47_216.66_0.jpg > > > > 48_215.71_0.jpg > > > > 49_214.96_0.jpg > > > > 5_0.00_0.jpg > > > > 50_214.01_0.jpg > > > > 51_213.26_0.jpg > > > > > > > > which means that the files are displaying in unexpected order - eg in > > > > colour_multi there are flashes of red throughout since these are the > > > > first > > > > files in the folder. > > > > > > > > the problems is better described here > > > > > > http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html > > > > > > > --- > > > > > > > > Reply to this email directly or view it on GitHub: > > > > https://github.com/gauthiier/RefractiveIndex/issues/3 > > > > > > --- > > > > > > Reply to this email directly or view it on GitHub: > > > > > > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045326 > > > > --- > > > > Reply to this email directly or view it on GitHub: > > > > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045341 > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/gauthiier/RefractiveIndex/issues/3#issuecomment-4045367
Author
Owner

Author: @heavyside Posted at: 01.03.2012 19:01

is this still a problem?

Author: @heavyside Posted at: 01.03.2012 19:01 is this still a problem?
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Reference: gauthiier/RefractiveIndex#3
No description provided.