Shards are failing becuase of script field painless

You can see an example here: Sorting comblex Array elements with Painless script