pub fn surface_sort_items(
items: &mut Value,
field: &str,
descending: bool,
) -> boolExpand description
Sorts a bounded list using a declared string or numeric field.
§Parameters
items: Input consumed bycrate::runtime::json_commands::surface_sort_items.field: Input consumed bycrate::runtime::json_commands::surface_sort_items.descending: Input consumed bycrate::runtime::json_commands::surface_sort_items.
§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!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.