Sort Dataset Items

  • lukaskrivka/sort-dataset-items
  • Modified
  • Users 3
  • Runs 132
  • Created by Author's avatarLukáš Křivka

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.
    index: 1,
    price: 2.35,
    title: 'my product',
    // your other data 
  1. Add this actor as a webhook to your scraper. URL: (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.


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.


See how Sort Dataset Items is used in industries around the world