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 sort command #14

Closed
wants to merge 5 commits into from
Closed

Conversation

liaujianjie
Copy link

@liaujianjie liaujianjie commented Aug 30, 2018

Description

Adds a sort command that sorts the entries by their name in alphabetical order.

Example usage

|| ===================================================
|| Enter command: list
|| [Command entered:list]
|| 	1. Jane Doe  Phone Number: 234  Email: [email protected]
|| 	2. Bob Smith  Phone Number: 456  Email: [email protected]
|| 	3. John Doe  Phone Number: 123  Email: [email protected]
|| 	4. Alice Smith  Phone Number: 345  Email: [email protected]
|| 
|| 4 persons found!
|| ===================================================
|| Enter command: sort
|| [Command entered:sort]
|| Address book has been sorted!
|| ===================================================
|| Enter command: list
|| [Command entered:list]
|| 	1. Alice Smith  Phone Number: 345  Email: [email protected]
|| 	2. Bob Smith  Phone Number: 456  Email: [email protected]
|| 	3. Jane Doe  Phone Number: 234  Email: [email protected]
|| 	4. John Doe  Phone Number: 123  Email: [email protected]
|| 
|| 4 persons found!
|| ===================================================

Checklist

  • Feature implementation
  • Zero regressions
  • Tests
  • Add to help command
  • User documentation

@liaujianjie liaujianjie deleted the sort branch August 30, 2018 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant