sort array by footnote_index