Sort series refs on output