I'm having an issue with my football team members array. I've categorized the players by position, and when I select a specific position (e.g., striker), only those players are displayed. However, when I press the 'secin' option again, I want all players to be visible. Unfortunately, nothing happens when I do that. How can I modify the "secin" option so that the entire array is sorted and displayed by default when selected? Any help in fixing this issue would be greatly appreciated. Thank you for helping me with my code!
const team_list=[
// Player data here
];
// Rest of the JavaScript code here