Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 14011a0

Browse files
author
Zhang Xu
committed
sort by percent
1 parent 52c72a5 commit 14011a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cmd.handler = function(argv) {
5959
const stat = {};
6060
for (let x of ['locked', 'starred', 'ac', 'notac', 'None', 'Easy', 'Medium', 'Hard']) stat[x] = 0;
6161

62-
problems = _.sortBy(problems, x => -x.fid);
62+
problems = _.sortBy(problems, x => x.percent);
6363
for (let problem of problems) {
6464
stat[problem.level] = (stat[problem.level] || 0) + 1;
6565
stat[problem.state] = (stat[problem.state] || 0) + 1;

0 commit comments

Comments
 (0)