Sort layers according to legend order in multiple input panel and
alphabetical order in single input panel.