Skip to content

_.sortBy option for sorting null values to end #2244

@jvincilione

Description

@jvincilione

Currently, _.sortBy doesn't sort null values. I believe an optional param to decide what to do with null and possibly undefined (which currently defaults to end) would be a good feature.

It's a pretty simple addition, and I have already coded the feature into a project I'm working on, and can a do a PR if you believe this is a feature worth adding.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions