Since returned metric names are distinct, we can remove the id from each element. Also change the returned metric name into alphabetical order. Change-Id: Id981dafd00778a6d4a376b9ceab011231e94c0c6