fixed digi sorting