Skip to content

Commit

Permalink
fix(android): explicit ordering for queries
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Sep 4, 2024
1 parent 01dc798 commit 3c1342e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class AlleyDao {
alleys.mechanism AS mechanism,
alleys.pin_base AS pinBase
FROM alleys
ORDER BY alleys.name
ORDER BY alleys.name ASC
""",
)
abstract fun getAlleysList(): Flow<List<AlleyListItem>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ abstract class BowlerDao : LegacyMigratingDao<BowlerEntity> {
bowlers.kind AS kind
FROM bowlers
WHERE bowlers.archived_on IS NULL
ORDER BY bowlers.name
ORDER BY bowlers.name ASC
""",
)
abstract fun getOpponentsList(): Flow<List<OpponentListItem>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class GearDao {
AND bowler_preferred_gear.bowler_id = :bowlerId
LEFT JOIN bowlers AS owner
ON gear.owner_id = owner.id
ORDER BY gear.name
ORDER BY gear.name ASC
""",
)
abstract fun getBowlerPreferredGear(bowlerId: BowlerID): Flow<List<GearListItem>>
Expand All @@ -52,7 +52,7 @@ abstract class GearDao {
AND game_gear.game_id = :gameId
LEFT JOIN bowlers AS owner
ON gear.owner_id = owner.id
ORDER BY gear.name
ORDER BY gear.name ASC
""",
)
abstract fun getGameGear(gameId: GameID): Flow<List<GearListItem>>
Expand All @@ -69,7 +69,7 @@ abstract class GearDao {
LEFT JOIN bowlers AS owner
ON gear.owner_id = owner.id
WHERE (:kind IS NULL OR gear.kind = :kind)
ORDER BY gear.name
ORDER BY gear.name ASC
""",
)
abstract fun getGearList(kind: GearKind? = null): Flow<List<GearListItem>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class LaneDao {
lanes.position AS position
FROM lanes
WHERE lanes.id IN (:ids)
ORDER BY lanes.label
ORDER BY lanes.label * 1 ASC
""",
)
abstract fun getLanes(ids: List<LaneID>): Flow<List<LaneListItem>>
Expand All @@ -34,7 +34,7 @@ abstract class LaneDao {
lanes.position AS position
FROM lanes
WHERE lanes.alley_id = :alleyId
ORDER BY lanes.label * 1
ORDER BY lanes.label * 1 ASC
""",
)
abstract fun getAlleyLanes(alleyId: AlleyID): Flow<List<LaneListItem>>
Expand All @@ -48,7 +48,7 @@ abstract class LaneDao {
FROM lanes
JOIN game_lanes ON game_lanes.lane_id = lanes.id
WHERE game_lanes.game_id = :gameId
ORDER BY lanes.label * 1
ORDER BY lanes.label * 1 ASC
""",
)
abstract fun getGameLanes(gameId: GameID): Flow<List<LaneListItem>>
Expand Down

0 comments on commit 3c1342e

Please sign in to comment.