# HG changeset patch # User Mike Becker # Date 1758750756 -7200 # Node ID 461d256e32c6a37a5a4a4f83fcfbbdcfa1f0db7d # Parent 30c20aac31b6e74f358a17de96d6bbc97d421196 fix that cxKvListInsert() did not lose the sorted property relates to #461 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