Commit 6cdec76e2a
Unsigned
Layout: unified · split
src/config.rs +4 −1
| @@ -182,8 +182,11 @@ impl ConfigHandle { | |||
| 182 | |_weechat: &Weechat, | 182 | |_weechat: &Weechat, |
| 183 | config: &Conf, | 183 | config: &Conf, |
| 184 | section: &mut ConfigSection| { | 184 | section: &mut ConfigSection| { |
| 185 | let mut options = section.options(); | ||
| 186 | options.sort_by(|a, b| a.name().cmp(&b.name())); | ||
| 187 | |||
| 185 | config.write_section(section.name()); | 188 | config.write_section(section.name()); |
| 186 | for option in section.options() { | 189 | for option in options { |
| 187 | config.write_option(option); | 190 | config.write_option(option); |
| 188 | } | 191 | } |
| 189 | }, | 192 | }, |