Function gutenberg::sort_pages [] [src]

pub fn sort_pages(pages: Vec<Page>, sort_by: SortBy) -> (Vec<Page>, Vec<Page>)

Sort pages using the method for the given section

Any pages that doesn't have a date when the sorting method is date or order when the sorting method is order will be ignored.