added another sorting method for backfill threaded scripts