Script for sorting data delivered by Analyze