animator / titus2

Titus 2 : Portable Format for Analytics (PFA) implementation for Python 3.4+
https://realworldpython.github.io/titus2/
Apache License 2.0
23 stars 2 forks source link

ordering in map.zipmap #2

Open pfanoob opened 3 years ago

pfanoob commented 3 years ago

based on PFA spec 0.8.1, map.zipmap should be order-agnostic (unlike a.zipmap). However, it appears that both titus2 require the maps in the parameter to have the same order of keys. Ordering of keys are not easily preserved. A simple map.map could shuffle key order. No straight forward workaround is available, as there is no native sorting function in the map manipulation library.