mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Sort clubs
This commit is contained in:
@@ -12,7 +12,11 @@ const getClubs = async () => {
|
||||
try {
|
||||
const client = await clientPromise;
|
||||
const db = client.db("tournamentsFranceDB");
|
||||
const data = await db.collection("clubs").find<ClubData>({}).toArray();
|
||||
const data = await db
|
||||
.collection("clubs")
|
||||
.find<ClubData>({})
|
||||
.sort({ name: 1 })
|
||||
.toArray();
|
||||
|
||||
return data
|
||||
.filter((c) => !!c.coordinates)
|
||||
|
||||
Reference in New Issue
Block a user