Merge pull request #22 from surreal8/master

sort array by footnote_index