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 ...
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 ...
1
vote
1
answer
105
views
How to sort /questions/featured by bounty_closes_date
The API documentation describes tthe usage of /questions/featured. Unfortunately there does not seem to be a way to sort the result by bounty_closes_date, which is IMO the sort option making most ...
1
vote
0
answers
114
views
User sort by last_modified_date always return errors
I am using this API to get users info sorting by last_modified date, https://api.stackexchange.com/docs/users#page=1&pagesize=100&order=asc&sort=modified&filter=!9YdnSBVWs&site=...
5
votes
1
answer
147
views
Is it possible to have no sorting - to just show results in order of inputted IDs?
I'm trying to send multiple IDs at once (up to a max of 100), but need to use the data in the same order I send the request with.
So, if I send IDs in an arbitary order like 4;1;3;2, I would like to ...
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 ...
2
votes
1
answer
159
views
Sorting the event stream
It seems like the data returned from the /events endpoint is flawed by being returned in descending order. For example:
{
"items": [
{
"event_type": "comment_posted",
"event_id": ...
3
votes
1
answer
109
views
How do you retrieve list of users sorted by reputation?
I am failing in my attempt to retrieve results sorted by reputation. For example, the following query sorts the results by ID. Is there an error in the URI?
http://api.stackoverflow.com/1.1/users/...
3
votes
2
answers
95
views
Sorting comments by votes doesn't return 0 score comments
I have a query:
http://api.stackoverflow.com/1.0/users/16822/comments?sort=votes
This doesn't return comments with no votes, setting min to 0 doesn't work. This query includes them all, but isn't ...
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
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 /...
0
votes
1
answer
144
views
How to sort answers to question?
If I retrieve a question like so:
http://api.stackoverflow.com/0.8/questions/1429951&sort=votes
I expect the answers to be sorted by votes, but they're not.
How can I do this?
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 | ...