Sort metric nodes