1
0
-1
1 answer
- 10-1
Angelina,
If you look at the raw results from the API you'll see that the objects are sorted correctly.
Your client is sorting them without your knowledge... you'll notice that the results are sorted by the Key (ie., animalID).
Richard
Add your comment...
I'm trying to sort by different animal fields using "resultSort", but it's doesn't seem to work 100%. For example, I tried sorting by animalLocationDistance. Here's an approximation of the animal order that's displaying. As you can see, overall, the sorting is working because it goes from smallest to largest, but it's not exact because it jumps around a bit. It seems like it gets more accurate as the distance increases though. This same thing happens when I sort with other fields, such as animalBreed. Is there any reason for this slight inaccuracy in the order?
Angelina, what you are describing doesn't sound right – we can take a look at it. Please open a support ticket and provide the full query you are making the API so we can reproduce the issue and get it resolved. https://support.rescuegroups.org
Hi Richard,
I just submitted the support ticket. Thank you.