Sorting the builds before processing the metrics