<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div class="bloop_sign" id="bloop_sign_1498939609147853824"></div> <div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span><div><div></div><div>On Sat, Jul 01, 2017 at 09:31:17AM +0200, Arturo Filastò wrote:<br>> I perfectly understand the issue you are talking about and in fact we actually<br>> already support order_by=“index”, though it should probably be documented.<br><br>How do I use it? This request gives me status code 400.<br><br>https://measurements.ooni.torproject.org/api/v1/files?limit=10&probe_cc=US&order_by=index<br>{<br>"error_code": 400,<span class="Apple-converted-space"> </span><br>"error_message": "Invalid order_by"<br>}</div></div></span></blockquote></div><p><br></p><p>Hum, in theory that should work too. I suspect it’s an issue with unicode vs str matching not working as expected.</p><p>In any case, in the meantime you this should work (using idx instead of index):</p><p>https://measurements.ooni.torproject.org/api/v1/files?limit=10&probe_cc=US&order_by=idx&order=asc</p><p>~ Arturo</p><p><br></p><p><br></p><div></div></body></html>