Questions tagged [sort]
Use this tag if you have a question about the Sort parameter.
27 questions
10
votes
1
answer
764
views
Sort Best First
Inspired by the Fastest Gun question on the central Meta, this script implements answer sorting based on a modified Wilson score. Installing the script adds a ‘Modified Wilson score’ sort option on ...
2
votes
2
answers
153
views
Is there any way or script to sort questions/posts/answers with custom criteria?
I want to fetch some questions from the API and I would like to sort them. However, I don't want to sort by the default options (activity, votes, creations, hot, week, month), but instead, for example,...
1
vote
1
answer
101
views
Wrong sorting parameter in documentation for question/{ids}/answers
It looks like that in the question/{ids}/answers documentation, there is a mistake:
votes – score
Shouldn't this be
votes – votes
2
votes
1
answer
85
views
Are the revisions returned by /posts/{ids}/revisions guaranteed to be returned in descending order?
The /posts/{ids}/revisions method returns all revisions to a post, but it doesn't have the sort and order parameters most methods have. From some quick tests, e.g. this one, I think it always returns ...
3
votes
0
answers
101
views
/synonyms sorting is majorly broken
I'm requesting /tags/synonyms data in descending order by creation date, but the order is jumbled up:
The first date is 2017-08-22 where as the second one is 2018-03-16. The same can be observed for ...
2
votes
1
answer
123
views
How to find questions that were posted or edited recently?
The api function documented at http://api.stackexchange.com/docs/questions lets me list questions on a site. How do I sort this so that I see questions that are recently posted, edited, including ...
1
vote
1
answer
129
views
How to sort by the newest question?
I'm trying to retrieve the latest questions posted in a particular tag.
What's the equivalent for:
http://stackoverflow.com/questions/tagged/php?sort=newest&pagesize=15
I see that v1.1 API is ...
1
vote
1
answer
192
views
Why is sort by name reverse alphabetical?
It makes sense that reputation or date should sort descending, but name? I tested both /users and /tags and they sort reverse alphabetical, so Z before A. Is that by design or just a side effect of ...
3
votes
2
answers
208
views
What does min and max mean when sort is "activity" or "hot"?
Does they mean anything actually? There was an "issue" when you needed to add min=0 to queries to actually get the answers instead of nothing. Just checked that this is not the case anymore, but was ...
2
votes
0
answers
43
views
How do I sort the /2.2/notifications endpoint?
I do not find information on the notifications api page. I am looking at this: https://api.stackexchange.com/docs/notifications I would like to be able to sort by creations date and other fields. is ...
4
votes
1
answer
132
views
Confirmation on sort, order and min/max
I'd like confirmation, if possible, that the following chart of sort types is correct:
sort |orderable|min/max |min/max type
------------------------------------------
activity | yes | ...
2
votes
1
answer
120
views
Question sort: change active to activity?
I noticed the sort newest for /questions, /questions/tagged/{tags} and /questions/unanswered was changed to creation recently, making it more consistent with other methods. Could the sort active for /...
1
vote
1
answer
88
views
Inconsistent sort ordering on users?
I'm trying to get a list of the 10 oldest users. This is the endpoint I'm using:
http://api.stackoverflow.com/0.8/users?key=(key)&order=asc&sort=creation&pagesize=10&page=0
...
1
vote
1
answer
41
views
Can I get the FAQ ordering via the API?
StackExchange sites have a feature to order by FAQ, e.g.:
Screenshot
This is in fact an ordering by the number of related questions and often produces very nice results.
Can you get that ordering ...