[Spring Boot metrics] Improved metrics sorting.