sort in OpenCommand and got rid of SortCommand