Implement $push-$each-$sort.