+ if (e->type == UCI_TYPE_SECTION)
+ uci_to_section(e)->anonymous = false;
+
+ return 0;
+}
+
+int uci_reorder_section(struct uci_context *ctx, struct uci_section *s, int pos)
+{
+ struct uci_package *p = s->package;
+ char order[32];
+
+ UCI_HANDLE_ERR(ctx);
+
+ uci_list_set_pos(&s->package->sections, &s->e.list, pos);
+ if (!ctx->internal && p->has_history) {
+ sprintf(order, "%d", pos);
+ uci_add_history(ctx, &p->history, UCI_CMD_REORDER, s->e.name, NULL, order);
+ }
+