Skip to main content

surface_sort_items

Function surface_sort_items 

Source
pub fn surface_sort_items(
    items: &mut Value,
    field: &str,
    descending: bool,
) -> bool
Expand description

Sorts a bounded list using a declared string or numeric field.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::json_commands::surface_sort_items holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::surface_sort_items(todo!(), "field", todo!());