'sort' method sorts one column only
MEMBER
Hi ! `ds.sort()` does sort the full dataset, not just one column:
```python
from datasets import *

ds = Dataset.from_dict({"foo": [3, 2, 1], "bar": ["c", "b", "a"]})
print(d.sort("foo").to_pandas()
#    foo bar
# 0    1   a
# 1    2   b
# 2    3   c
```

What made you think it was not the case ? Did you experience a situation where it was only sorting one column ?
2022-07-05T14:58:34Z
https://github.com/huggingface/datasets/issues/4632#issuecomment-1175161746
https://api.github.com/repos/huggingface/datasets/issues/4632
IC_kwDODunzps5GC4uS
https://api.github.com/repos/huggingface/datasets/issues/comments/1175161746/reactions
2022-07-05T14:58:34Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1175161746
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Hi! thank you for your quick reply!
I wanted to sort the `cnn_dailymail` dataset by the length of the labels (num of characters). I added a new column to the dataset (`ds.add_column`) with the lengths and then sorted by this new column. Only the new length column was sorted, the reset left in their original order. 
2022-07-07T10:55:38Z
https://github.com/huggingface/datasets/issues/4632#issuecomment-1177400717
https://api.github.com/repos/huggingface/datasets/issues/4632
IC_kwDODunzps5GLbWN
https://api.github.com/repos/huggingface/datasets/issues/comments/1177400717/reactions
2022-07-07T10:55:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1177400717
https://avatars.githubusercontent.com/u/42108562?v=4
https://api.github.com/users/shachardon/events{/privacy}
https://api.github.com/users/shachardon/followers
https://api.github.com/users/shachardon/following{/other_user}
https://api.github.com/users/shachardon/gists{/gist_id}
https://github.com/shachardon
shachardon
MDQ6VXNlcjQyMTA4NTYy
https://api.github.com/users/shachardon/orgs
https://api.github.com/users/shachardon/received_events
https://api.github.com/users/shachardon/repos
https://api.github.com/users/shachardon/starred{/owner}{/repo}
https://api.github.com/users/shachardon/subscriptions
User
https://api.github.com/users/shachardon
public
MEMBER
That's unexpected, can you share the code you used to get this ?
2022-07-07T12:06:32Z
https://github.com/huggingface/datasets/issues/4632#issuecomment-1177504251
https://api.github.com/repos/huggingface/datasets/issues/4632
IC_kwDODunzps5GL0n7
https://api.github.com/repos/huggingface/datasets/issues/comments/1177504251/reactions
2022-07-07T12:06:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1177504251
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.