Zim

Comment 7 for bug 303657

Revision history for this message
milk2cups (milk2cups) wrote : Re: [Bug 303657] Re: natural sorting in the page index

On Wed, Mar 23, 2011 at 5:09 AM, Lisa <email address hidden> wrote:
> Hi,
> I would like to work on this. I think milk2cups' idea is good. The sorting function can be called when the user decides to change the sorting type (through a menu voice o dragging the pages around) and the Next fields will be updated.
>
> Just a question: the natural sorting should be applied even when the
> numbers are in a different position, like at the beginning of the
> filename or in the middle?

I suggest you only do the obvious ordering, and do nothing if the
situation becomes tricky.
i.e., part1, part2, ..., part10. but do not try too hard to figure out
the ordering of part1x and part_2aaa.
Also, I think there're some conventions regarding software version
numbers, e.g., py3alpha, py3beta, py3rc, etc., you might want to take
that into consideration as well.