diff -r 30c20aac31b6 -r 461d256e32c6 src/kv_list.c --- a/src/kv_list.c Wed Sep 24 23:51:04 2025 +0200 +++ b/src/kv_list.c Wed Sep 24 23:52:36 2025 +0200 @@ -650,6 +650,9 @@ } int cx_kv_list_insert(CxList *list, size_t index, CxHashKey key, void *value) { + // assume we are losing the sorted property + list->collection.sorted = false; + cx_kv_list *kv_list = (cx_kv_list*)list; // reserve memory in the map