* sort bugfix for not rearranging input data * separate sort schedule * fix lint * use identity op instead * fix lint * remove redundent code