updated sort command and comments