Skip to content

sortandperm  #24770

@xiaodaigh

Description

@xiaodaigh

I find that often times I would like to sort a vector and return its sortperm and I imagine having a function that returns both the sorted vector and its order is useful for say sorting DataFrames and many other applications.

Hence I propose to implement a function called sortandperm(v) which returns (sort(v), sortperm(v)) but uses a more optimized algorithm then the naive implementation

This should alleviate the slowness of #939 as well in some use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sortingPut things in order

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions