Questions tagged [sort]

Use this tag if you have a question about the Sort parameter.

Filter by
Sorted by
Tagged with
9 votes
1 answer
606 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 ...
user3840170's user avatar
9 votes
0 answers
293 views

Answerable, a recommender of unanswered questions

About Answerable is a Python program that finds unanswered questions on Stack Overflow that you could be able to answer. Background At first I didn't know about the StackExchange API, so I planned to ...
Miguel's user avatar
  • 191
1 vote
1 answer
74 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
Luca Bartoletti's user avatar
2 votes
2 answers
125 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,...
double-beep's user avatar
2 votes
1 answer
50 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 ...
Glorfindel's user avatar
  • 6,762
3 votes
0 answers
84 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 ...
a1626's user avatar
  • 161
1 vote
1 answer
75 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 ...
kriegaex's user avatar
  • 121
1 vote
1 answer
88 views

Absence of `order` and `sort` in rest calls?

Will absence of order and sort give the same result as order=desc and sort=activity always in every call (it is default in every call)?
amit jha's user avatar
  • 842
1 vote
0 answers
101 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=...
Michael Sun's user avatar
2 votes
1 answer
79 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 ...
b_jonas's user avatar
  • 153
5 votes
1 answer
97 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 ...
ᔕᖺᘎᕊ's user avatar
  • 4,365
2 votes
0 answers
32 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 ...
Angel S. Moreno's user avatar
1 vote
1 answer
99 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 ...
Amal Murali's user avatar
1 vote
1 answer
60 views

Ability to sort answers by number of revisions via StackExchange API v2?

I was curious whether there was a way to easily find which StackOverflow answer has the highest number of revisions and/or to sort by that metric. I see mention of a sort function in the ...
Gary S. Weaver's user avatar
2 votes
1 answer
128 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": ...
Dave DeLong's user avatar
  • 5,264
1 vote
1 answer
25 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 ...
justmoon's user avatar
  • 113
3 votes
1 answer
87 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/...
Mark Wilkins's user avatar
8 votes
1 answer
121k views

sorting ascending vs descending

I don't understand the difference between ascending and descending? Surely ascending means the most active/recent/popular/A first, and descending means the least active/recent/popular/Z first? But it ...
Jonathan.'s user avatar
  • 3,128
3 votes
2 answers
74 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 ...
Gelatin's user avatar
  • 796
2 votes
1 answer
84 views

Paging /users by rep is on sites with low user count unpredictable

Resolution Fix confirmed: Tests.SortDupBug Page 1 #100 Total 11066 api.serverfault.com /users?max=2147483647&min=99&page=1&pagesize=100&key=qgAq_KfDu0KYzlNG-qaTuw Page 2 #100 Total 11066 api....
Sky Sanders's user avatar
  • 12.1k
3 votes
2 answers
187 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 ...
SztupY's user avatar
  • 713
1 vote
1 answer
69 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 ...
Dave DeLong's user avatar
  • 5,264
2 votes
1 answer
95 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 /...
ColinD's user avatar
  • 369
1 vote
1 answer
68 views

Is there a difference between "newest" and "creation"?

When I look at some API endpoints, say /questions/tagged/{tags} and /questions/{id}, I see that the former can be sorted by newest, and the latter can be sorted by creation, both ascending or ...
Dave DeLong's user avatar
  • 5,264
0 votes
1 answer
113 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?
Nathan Osman's user avatar
  • 23.3k
1 vote
1 answer
175 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 ...
Jim McKeeth's user avatar
4 votes
1 answer
115 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 | ...
ColinD's user avatar
  • 369