Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorting #75

Merged
merged 17 commits into from
Mar 16, 2019
Merged

Add sorting #75

merged 17 commits into from
Mar 16, 2019

Conversation

dlqs
Copy link

@dlqs dlqs commented Mar 16, 2019

Add sort command

Sort comand will sort the active filtered cards by percentage score, in ascending order. The sort method is also implemented for ModelManager so that the active filtered cards can be sorted with any provided comparator.

Since we need a way to go back to the "default" ordering (questions in lexicographic order), I also modified the list command to first do a sort before listing. So a list is now really a sort in lexicographic order plus a list.

For user story #35

Ready for review

@dlqs dlqs added this to the v1.2 milestone Mar 16, 2019
@dlqs dlqs requested a review from afterdusk March 16, 2019 09:01
Copy link

@afterdusk afterdusk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@dlqs dlqs merged commit 00ad4fe into cs2103-ay1819s2-w10-4:master Mar 16, 2019
@dlqs dlqs mentioned this pull request Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants