This PR makes sure that map buffer entries are sorted in numerical order (if keys are valid numbers), defaulting to regular string sort.
Needs discussion
@lo5 this is a possible breaking change although I don't think there are many people relying on string sort order. There are ways around making this non-breaking, but not sure if worth the hassle + IMO this should be the right behavior. Wdyt?
This PR makes sure that map buffer entries are sorted in numerical order (if keys are valid numbers), defaulting to regular string sort.
Needs discussion
@lo5 this is a possible breaking change although I don't think there are many people relying on string sort order. There are ways around making this non-breaking, but not sure if worth the hassle + IMO this should be the right behavior. Wdyt?