Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [sort]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
57 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,...
3
votes
1answer
31 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 ...
5
votes
1answer
95k 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 ...
3
votes
0answers
61 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 ...
1
vote
1answer
61 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
1answer
84 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)?
1
vote
0answers
63 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=...
2
votes
1answer
54 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
1answer
150 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 ...
4
votes
1answer
63 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 1;2;3;4, I would like to receive the JSON sorted in ...
1
vote
0answers
27 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 ...
0
votes
1answer
87 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
1answer
51 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 ...
2
votes
1answer
101 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": ...
1
vote
1answer
23 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 ...
3
votes
1answer
82 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
2answers
69 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 ...
2
votes
1answer
83 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....
3
votes
2answers
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 ...
2
votes
1answer
87 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
1answer
64 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
1answer
61 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 ...
0
votes
1answer
92 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
1answer
103 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 | ...