Added support to sort by critical_time and processing_time