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