add sorting scripts