Skip to content

Sort question list by pattern then difficulty #12

Closed
@seanprashad

Description

@seanprashad

#9 made me realize that the question list only looks 'sorted' since the source file, https://github.com/SeanPrashad/leetcode-patterns/blob/master/src/data/index.js, has the question list conveniently sorted already.

However, this will become a problem when we begin adding new questions that add to existing categories, essentially showing the questions out of place.

Let's look into using react-table's UseSortBy method to implement custom sorting by pattern, then difficulty, then question name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions