default sort
This commit is contained in:
parent
35bc36ad88
commit
b815bc73c6
@ -106,8 +106,9 @@ func Cards(rarity, set, sort string) {
|
||||
sortStage = bson.D{{"collectornumber", 1}}
|
||||
case "name":
|
||||
sortStage = bson.D{{"name", 1}}
|
||||
default:
|
||||
sortStage = bson.D{{"name", 1}}
|
||||
}
|
||||
fmt.Println(sortStage)
|
||||
|
||||
if len(set) > 0 {
|
||||
filter = append(filter, bson.E{"set", set})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user