Skip to main content

sort_instant

Function sort_instant 

Source
pub fn sort_instant(
    order: &SortOrder,
    schema: &SeriesSchema,
    series: Vec<Series>,
) -> Result<Vec<Series>>
Expand description

Orders the series of an instant result. A range result keeps its order: Prometheus does not sort matrices.

sort and sort_desc drop histogram samples, in a range result too: Prometheus filters them out at every step (filterFloats) before it sorts. The label sorts keep every sample.