Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Sort question list by pattern then difficulty #12

Copy link
Copy link
Closed
@seanprashad

Description

@seanprashad
Issue body actions

#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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.