Skip to content

[W5][T09-2]Cheah Zhi Kang - #26

Open
cheahzk wants to merge 5 commits into
nusCS2113-AY1819S2:masterfrom
cheahzk:W5
Open

[W5][T09-2]Cheah Zhi Kang#26
cheahzk wants to merge 5 commits into
nusCS2113-AY1819S2:masterfrom
cheahzk:W5

Conversation

@cheahzk

@cheahzk cheahzk commented Feb 10, 2019

Copy link
Copy Markdown

Added sort command to sort all persons' full names alphabetically and display them in a list.
Able to detect correct sort command.

Credits to Marcus Phua for some of the codes in mine.

@Wanchunwei

Copy link
Copy Markdown

Good feature! It is a useful and convenient function for customers.

@ghost

ghost commented Feb 10, 2019

Copy link
Copy Markdown

It looks good when listing all people after adding sort function.

@jingchen-z

Copy link
Copy Markdown

Very useful functionalities, which makes the output more ordered and organized. :)

@sanjukta99 sanjukta99 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can consider abstracting your Sort command further so that it only sorts the list of persons in the Address Book but does not list them (following the Single Responsibility Principle). Overall, good job on creating a useful feature, with updates to the UG and test cases! Please read the reviews and close this PR.

Comment thread src/seedu/addressbook/commands/SortCommand.java
Comment thread docs/UserGuide.adoc
Comment thread test/expected.txt
Comment thread test/input.txt
list
add Esther Potato p/555555 e/esther@not.a.real.potato pa/555, epsilon street t/tubers t/starchy
list
sort

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perhaps your input for the test case should not be added in a lexicographically sorted manner? You can consider changing the order of one or more of the test inputs to verify whether your command works as expected.

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.

6 participants