Maintain legends' order (use List instead of Dict) (#926)