DoonOnthon / GamePulse

GamePulse: Your gaming universe awaits! ๐ŸŽฎ๐Ÿš€ Browse, explore, and engage with games based on categories, release dates, and sales numbers. Join the gaming community at GamePulse and stay connected with the pulse of gaming excitement! ๐Ÿ’ป๐ŸŽ‰
MIT License
22 stars 29 forks source link

Implement Sales Numbers Sorting - Good First Issue #8

Closed DoonOnthon closed 1 year ago

DoonOnthon commented 1 year ago

Issue: Implement Sales Numbers Sorting

Difficulty: Good First Issue

Description: This issue involves enhancing the sorting functionality of the GamePulse project by adding the ability to sort games based on their sales numbers. The sorting should allow users to switch between sorting games from highest to lowest sales numbers and vice versa, similar to the existing sorting options for title and release date.

Steps:

Clone the repository: First, fork and clone the GamePulse repository to your local machine.

Locate the relevant files: The code for sorting games is located in the game_list.php file for displaying the table header, and the sorting logic is in the includes/functions.inc.php file.

Add Sales Numbers Sorting: Modify the game_list.php file to include a link for sorting games by sales numbers. You can take inspiration from the existing sorting links for title and release date.

Implement Sorting Logic: In the includes/functions.inc.php file, add the sorting logic for sales numbers using the sortGamesBySalesNumbers function.

Testing: Test the new sorting functionality on your local environment to ensure it works as expected.

Commit and Push: Once you're satisfied with the changes, commit them and push to your forked repository.

Looking for Inspiration? If you're unsure about how to implement the sales numbers sorting, you can take a look at the existing code for sorting by title and release date. These sections can serve as helpful examples to guide you.

Contribute: For more information on how to contribute to the GamePulse project, refer to the CONTRIBUTING.md file in the repository. It provides a step-by-step guide on forking, making changes, and submitting pull requests.

If you have any questions or need assistance, feel free to ask in the comments. We're here to help!

Happy coding! ๐ŸŽฎ๐Ÿš€