carbonapi icon indicating copy to clipboard operation
carbonapi copied to clipboard

sortBy: substitute NaN values for negative infinity

Open mchrome opened this issue 1 year ago • 0 comments

Using sortByMaxima with a series that only has NaN values causes it to end up at the top of the series list which is different from graphite-web. In graphite-web when you use a sortBy function all aggregated values that are equal to NaN are set to -Inf. Link to code. This PR adds the same behavior.

mchrome avatar May 07 '24 10:05 mchrome