Updated sorting command to make it more efficient. Thanks again @Galithil