Skip to content

doc suggestion: note up front it is not sorted by key, but insertion order. #58

Open

Description

@glycerine

Just 0.02 of feedback --

When I read "ordered", I thought this package provided for range queries on sorted keys.

The issue about "map is not sorted" set me straight, but there is nothing in the readme to indicate this subtlety.

I only lost ~ 30 minutes to this mis-conception, but I would have appreciated it if the README was more up front about what the overloaded term "ordered" is indicating here. Your usage is not what first comes to mind, though I've certainly implemented the same for some needs.

edited: Thanks! nice package btw.

Activity

  1. elliotchance commented on Jul 9, 2025

    @elliotchance
    Owner

    I'm happy to accept a PR that clarifies the language in the README. In my experience, the word "ordered" is never used for sets and collection that are in fact sorted.

  2. glycerine commented on Jul 9, 2025

    @glycerine
    Author

    I'd just put you wrote on that other issue up top, first thing in the readme. I've just changed the word "placed" to "returned"

    "This package does not provide a sorted map (where items are returned in sorted order), it is an ordered map (where insert order is maintained)."

    For me, ordered is a common synonym for sorted. Insert-ordered-map would be how I would describe this map to make the distinction.

  3. Necoro commented on Jul 15, 2025

    @Necoro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions