Sorting pending metrics before dispatching