Fix sorting
This commit is contained in:
@@ -123,10 +123,10 @@ export async function handler (context: Context) {
|
|||||||
orderBy = sql`price ASC`
|
orderBy = sql`price ASC`
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
orderBy = sql`id ASC`
|
orderBy = sql`place ASC`
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
orderBy = sql`id DESC`
|
orderBy = sql`place DESC`
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
orderBy = sql`price DESC`
|
orderBy = sql`price DESC`
|
||||||
|
|||||||
Reference in New Issue
Block a user