Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/client/src/views/Games.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ const Games = ({ authenticated }) => {
</Box>

<Grid container spacing={2}>
{games.map((game) => {
{[...games]
.sort((a, b) => (a.name || '').localeCompare(b.name || '', undefined, { sensitivity: 'base' }))
.map((game) => {
const isHovered = hoveredGame === game.steamgriddb_id
const heroTransform = isHovered
? `translate(${mousePos.x * -15}px, ${mousePos.y * -15}px) scale(1.1)`
Expand Down
3 changes: 2 additions & 1 deletion app/server/fireshare/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def get_games():

# If user is authenticated, show all games
if current_user.is_authenticated:
games = GameMetadata.query.all()
games = GameMetadata.query.order_by(GameMetadata.name).all()
else:
# For public users, only show games that have at least one public (available) video
games = (
Expand All @@ -971,6 +971,7 @@ def get_games():
VideoInfo.private.is_(False),
)
.distinct()
.order_by(GameMetadata.name)
.all()
)

Expand Down