Add Ephemeral.compare_measures() to handle sorting