open5e-api icon indicating copy to clipboard operation
open5e-api copied to clipboard

Ordering by CR descending puts creatures with CR 9 at the top.

Open tonesija opened this issue 3 years ago • 0 comments

Seems to me it doesn't sort the CR value like a number but like a string so it returns that CR of 9 is above CR 21. Example: hitting this endpoint: https://api.open5e.com/monsters/?ordering=-challenge_rating&page=1 I get that the first monster is Clay Golem which has a CR of 9.

tonesija avatar Mar 02 '21 18:03 tonesija