Ah, okay, I see. Yes, this is correct. I don't really like the magic though
:( but I doubt there's a simple way to do it w/o one.


On Mon, Apr 29, 2013 at 9:32 AM, Jens Schumann <notifications@github.com>wrote:

> In _ext/faq.rb:
>
> >            doc = Asciidoctor.load(File.new(file, 'r'))
> >            file_name_number = File.basename(file, '.asciidoc').to_i > 0 ? File.basename(file, '.asciidoc').to_i : doc.attributes['order']
> >            faq << {:title => doc.doctitle,
> > -                  :order => file_name_number.to_s || '',
> > +                  :order => (file_name_number || '999999').to_i,
>
> I am not an ruby expert at all;). However I need a number to sort it
> properly. Previously existing code sorted 1, 100, 101 and so on.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cdi-spec/cdi-spec.org/pull/6/files#r4000764>
> .
>



-- 
Jason Porter
http://en.gravatar.com/lightguardjp