@@ -77,7 +77,7 @@ Format: `help`
7777
7878Adds a person to the address book.
7979
80- Format: ` add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [g/GROUP]… `
80+ Format: ` add n/NAME [ p/PHONE_NUMBER] [ e/EMAIL] [ a/ADDRESS] [g/GROUP]… `
8181
8282<div markdown =" span " class =" alert alert-primary " >:bulb: **Tip:**
8383A person can have any number of groups (including 0)
@@ -126,7 +126,7 @@ Examples:
126126* ` find alex david ` returns ` Alex Yeoh ` , ` David Li ` <br >
127127 ![ result for 'find alex david'] ( images/findAlexDavidResult.png )
128128
129- ### Locating persons by personName : ` findg `
129+ ### Locating persons by group : ` findg `
130130
131131Finds persons whose groups contain any of the given keywords.
132132
@@ -155,19 +155,22 @@ Examples:
155155* ` list ` followed by ` delete 2 ` deletes the 2nd person in the address book.
156156* ` find Betsy ` followed by ` delete 1 ` deletes the 1st person in the results of the ` find ` command.
157157
158- ### Sorting of contacts : ` sort `
158+ ### Sorting of contacts : ` sortp `
159159
160160Sorts the contacts displayed according to a specified field.
161161
162- FormatL ` sort FIELDNAME `
162+ Format: ` sortp by/FIELD d/DIRECTION `
163163
164- * Sorts according to the field specified by ` FIELDNAME `
165- * ` FIELDNAME ` is only restricted to the following cases:
166- * Sort by personName : ` personName `
167- * Sort by priority (Coming in v1.3) : ` priority `
168- * Sort by last seen date (Coming in v1.3) : ` lastSeenDate `
164+ * Sorts according to the field specified by ` FIELD `
165+ * ` FIELD ` is only restricted to the following cases:
166+ * Sort by name : ` NAME `
167+ * Sort by email : ` EMAIL `
168+ * Sort by phone number : ` PHONE `
169+ * Sort by address : ` NAME `
170+ * ` DIRECTION ` is only restricted to the following cases:
171+ * Sort by ascending alphabetical order : ` ASC `
172+ * Sort by descending alphabetical order : ` DESC `
169173
170- Examples:
171174
172175### Clearing all entries : ` clear `
173176
@@ -240,6 +243,24 @@ Format: `deletem INDEX`
240243Examples:
241244* ` listm ` followed by ` delete 2 ` deletes the 2nd meeting in the meeting book.
242245
246+ ### Sorting of meetings : ` sortm `
247+
248+ Sorts the meetings displayed according to a specified field.
249+
250+ Format: ` sortm by/FIELD d/DIRECTION `
251+
252+ * Sorts according to the field specified by ` FIELD `
253+ * ` FIELD ` is only restricted to the following cases:
254+ * Sort by name : ` NAME `
255+ * Sort by start time : ` START `
256+ * Sort by end time : ` END `
257+ * Sort by priority : ` PRIORITY `
258+ * Sort by description : ` DESCRIPTION `
259+ * ` DIRECTION ` is only restricted to the following cases:
260+ * Sort by ascending order : ` ASC `
261+ * Sort by descending order : ` DESC `
262+
263+
243264### Listing all persons and meetings : ` list `
244265
245266Shows a list of all persons and meetings in MeetBuddy.
0 commit comments