Skip to content

Commit

Permalink
Merge pull request #111 from Dominic-Khoo/branch-ug-sortcommand
Browse files Browse the repository at this point in the history
Add Sort Command to UG
  • Loading branch information
Dominic-Khoo authored Nov 7, 2024
2 parents 9eb7ea8 + 70db257 commit 99f6aed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,20 @@ Format: `delete NRIC`
Examples:
* `delete S1234567A` deletes the patient profile of the patient with `NRIC S1234567A`.

### Sort list of patients: `sort`

Sorts the list of patients based on the specified criteria.

Format: `sort [name | appointment]`

Examples:
* `sort name` sorts the list of patients in alphabetical order by their names.
* `sort appointment` sorts the list of patients by their upcoming appointment dates in chronological order.

#### Notes
- If the list is already sorted by the specified criteria, the command will maintain the current order.
- Sorting by `appointment` will only consider patients with scheduled appointments. Patients without appointments will appear at the end of the list.

### Clearing all entries : `clear`

Clears all entries from the database.
Expand Down

0 comments on commit 99f6aed

Please sign in to comment.