carbonapi
carbonapi copied to clipboard
sortBy: substitute NaN values for negative infinity
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.