question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support new `sort_order` parameter

See original GitHub issue

There 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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stuartduncan416commented, Feb 25, 2022

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.

1reaction
edsucommented, Feb 10, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found