Skip to content

Commit

Permalink
Remove redundant sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
yooplo committed Oct 21, 2024
1 parent 98f50e1 commit aa14d98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/seedu/address/ui/TagListPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public TagListPanel(ObservableList<Tag> tagList) {
*/
public void updateTagList(ObservableList<Tag> tagList) {
ObservableList<Tag> sortedTags = FXCollections
.observableArrayList(tagList)
.sorted(Comparator.comparing(Tag::toString));
.observableArrayList(tagList);
tagListView.setItems(sortedTags);
}

Expand Down

0 comments on commit aa14d98

Please sign in to comment.