05: Further explanation of `sort` #445
Comments
Yep, I agree. By default, if you are ordering according to a numeric value you should always use |
Hi, on this dataset, from https://github.com/swcarpentry/shell-novice/blob/gh-pages/_episodes/04-pipefilter.md:
This is on linux with GNU coreutils' version of sort. Are you using another system? |
They produce the same result in the Macs (and maybe in Windows). |
Can confirm that both commands produce the same result on Macs. Macs don't use GNU sort by default. Maybe we should just recommend using the |
Wouldn't it be good to add a note or a comment in the lesson? Last time we had about 1/3 of the people with a red post it to ask why they were getting a different output than the instructor. I realized the pattern mac/linux users after checking on a couple of people. I guess since the instructor likely works on a specific OS s/he may no notice this before the actual carpentry. |
Currently in 05
sort
andsort -n
is introduced, however, on this dataset (downloaded from website link on 31 Aug 2016) both work the same, might want to consider explanation for this.The text was updated successfully, but these errors were encountered: