AY2122S2-CS2103T-T09-3 / tp

MIT License
0 stars 4 forks source link

[PE-D] List does not remain sorted after adding a new show #248

Closed soc-se-bot closed 2 years ago

soc-se-bot commented 2 years ago

When the add command is used after the sort command, the ordering of the list as per the previous sort command is no longer obeyed.

Steps to recreate:

  1. Sort the list. e.g., sort r/asc
  2. Add a new show. e.g., add n/Crime Watch s/completed r/0

Expected:

The list should still be sorted by rating, as shown in this image

image.png

Actual:

The new show is added at the end of the list, as shown in this image

image.png


Labels: severity.Medium type.FunctionalityBug original: Ashuh/ped#3

ghost commented 2 years ago

This is the intended effect. I think we should make it more clear sort is only applied once during that timeframe and adding will always add to the last index.