Skip to content

Returns the same result for [1,2,3] and [3,2,1] (all arrays are sorted) #5

@jcward

Description

@jcward

The self.parse_array function sorts all arrays. That seems like odd behavior, but perhaps that's intended?

Crimp.stringify([1,2,3]) -> [\"1Fixnum\", \"2Fixnum\", \"3Fixnum\"]Array
Crimp.stringify([3,2,1]) -> [\"1Fixnum\", \"2Fixnum\", \"3Fixnum\"]Array

I presume the sort is to fix hash order problems, but perhaps better would be to explicitly sort just the hashes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions