Skip to content

[FEATURE] Order trait #14

@BigBadE

Description

@BigBadE

Describe Your Feature
An order trait that returns the relative order of two things.

Provide a Code Snippet Using Your Feature

fn test() {
    # 1 means greater than, 0 means equal, -1 means greater than.
    return 1.order(0) == 1;
}

**Additional Information**
Order should be implemented like the Equals trait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Easy

    Status

    Easy

    Status

    Easy

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions