Support new `sort_order` parameter
See original GitHub issueThere is a new search parameter available, sort_order
https://twittercommunity.com/t/introducing-the-sort-order-parameter-for-search-endpoints-in-the-twitter-api-v2/166377
By default, when the sort_order parameter is not used, the Tweets are returned based on recency (i.e. the most recent Tweets first). However, if you want the most relevant Tweets first, you can set the sort_order parameter to relevancy.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How to pass property and sortorder as parameters for sorting ...
Depending on method usage, I need to sort the List inside the method on different properties, and either Ascending or Descending. How can...
Read more >Introducing the sort_order parameter for search endpoints in ...
Using this parameter, developers can specify the order in which they want the Tweets returned from the search endpoints.
Read more >Solved: Sort order based on multiple parameters - ServiceNow
Is it possible to sort a list based on more then one parameter? What our users want is a possibility to sort a...
Read more >How to use parameters to change the sort order of report
Create the Parameter. Select Insert, Parameter Field from the menu bar and click New. Name the parameter Sort Order; you will use this...
Read more >Defining sort order using parameter fields - SAP Community
I've created a report, the contents of which is sorted depending on a parameter selected (method used is as described in the help...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to add a voice, as I was the one asking about it on the Twitter API forum.
I had a use scenario where I thought it would be useful. I am working with some researchers that wanted to do a Twitter API query that would result in millions of results. We thought about capping the results at about 1 million for a one year time period, but the results would all be from December 31st (the end date) to October (when it would hit the million mark). 1 million tweets scattered throughout the year would have worked better for them, as they just wanted a sample of tweets throughout the entire period. I thought we could use the sort_order flag to accomplish this.
Yeah, it definitely could be interesting for meta questions about how Twitter works. But of limited interest to people collecting tweets I’d wager.
That being said, I’m definitely not opposed to adding it. Maybe someone will come up with a creative use!