-
Notifications
You must be signed in to change notification settings - Fork 680
Description
I don't know whether it's a bug or a feature. So I post it as a feature proposal anyway.
🚀 Feature Proposal
Make the problems on the left sidebar ordered by their problem ID.
Motivation
It may make people feel much better if they are ordered.
Contribution
There are two ways to solve this problem:
- We can sort the problem list after retrieving it from
LeetCodeExecutor.listProblemsby each problem'sfid. - Or we can make the result coming from
leetcode-cliordered. I investigate the source code ofleetcode-tools/leetcode-clia little bit and suppose the functionplugin.getProblemsis the one that should be updated. After gathering all the problems from different categories. We can sort them by theirfidattributed.
Another issue
Besides, I notice that the graphql method in leetcode-cli is defined but not leveraged. Can we use graphql to get problems a specific company or tag? So that we can abandon the company.js file to avoid hardcoding tag and company information (enven now this information is not updated frequently though).
The issue section of leetcode-tools/leetcode-cli is closed but I find that that repository and this one are maintained by the same group of people. So I post this here. I would appreciate it if you could kindly consider my proposal.