Default searchGame() ordering should be blank, not release date
Hey nice API wrapper!,
I noticed that in the following line of code:
https://github.com/messerli90/igdb/blob/8c9ee67604d6d8b4e40ccfb145a25dd4ce9e2084/src/IGDB.php#L282
You set the default search ordering to be 'release_dates.date:desc'. 9 times out of 10, I think this produces results you don't want, for example, upon searching "The Witcher 3", I get this:
[
{
"id": 2933,
"name": "Kingdom Hearts III"
},
{
"id": 13165,
"name": "The Guild 3"
},
{
"id": 12579,
"name": "Danganronpa V3: Killing Harmony"
},
{
"id": 7333,
"name": "Crackdown 3"
},
{
"id": 18980,
"name": "Warhammer 40,000: Dawn of War III"
},
{
"id": 11806,
"name": "Dark Cloud 3"
},
{
"id": 17583,
"name": "SpellForce 3"
},
{
"id": 13215,
"name": "Cossacks 3"
},
{
"id": 13163,
"name": "Syberia 3"
},
{
"id": 11542,
"name": "Shenmue III"
}
]
Whereby the real result I clearly wanted is absent, since the game is "too old".
I'd recommend changing it to be "null" since the ordering is not a required parameter, but I'm not sure if that will break your code. (I am currently using my own API wrapper).