AY2425S1-CS2103T-T10-1 / tp

MIT License
0 stars 5 forks source link

Sort command: Behaviour when no appointment date is present #123

Open Bonzzz3 opened 2 hours ago

Bonzzz3 commented 2 hours ago

Description

When there is no appointment dates, list remains the same which may confuse users. image output of sort

Suggested Improvements

Some of the improvements I can think of:

  1. Update the user guide for the sort command to specify that contacts will be sorted by appointment dates, then any contacts without appointments will remain sorted alphabetically at the end of the list.
  2. Display an error message when no contacts have appointment dates, such as No contacts with appointment dates found.
  3. When there are no contacts with appointment dates, display only the error message (as in suggestion 2) and an empty list to indicate no results for sort.
OttoTan commented 2 hours ago

I prefer 1 and 2, rather than returning an empty list, because the user will have to make an unnecessary additional command list just to get the list back