Sort Dataset Items avatar

Sort Dataset Items

Try for free

No credit card required

View all Actors
Sort Dataset Items

Sort Dataset Items

lukaskrivka/sort-dataset-items
Try for free

No credit card required

Add this actor as a webhook to your scraper to sort the dataset by index field

Dataset items are immutable but this actor will create a new dataset with ordered items. This is useful if you need to keep the same order as your Start URLs.

  1. Make sure that items from your scraper in your original dataset have an index property, e.g.
1{
2    index: 1,
3    price: 2.35,
4    title: 'my product',
5    // your other data 
6}
  1. Add this actor as a webhook to your scraper. URL: https://api.apify.com/v2/acts/lukaskrivka~sort-dataset-items/runs?token=YOUR_TOKEN (replace with your real token)
  2. After your scraper finishes, it will automatically launch this actor. Once this actor finishes, it will produce dataset with sorted items.

Memory

If you need to sort large dataset, you might need to increase memory of this actor. You can change default memory by making it into a task.

Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 3 stars

  • Created in May 2022

  • Modified a year ago