Skip to main content

sort_items

Function sort_items 

Source
pub fn sort_items(items: &[LinoValue], sort: &[SortKey]) -> Vec<LinoValue>
Expand description

Sort items by the sort keys of a collection query.

The original list is left untouched, and the sort is stable, so items that compare equal keep the order the store returned them in.