I am new in the Mathematica community and I have a probably easy question for you regarding how to sort a dataset as the following so that I have sorted the values in the fist row descending from 44 in the first line down to 3 in the last line.
dataset = Dataset[{
<|"a" -> 6, "b" -> "x", "c" -> {1}|>,
<|"a" -> 8, "b" -> "y", "c" -> {2, 3}|>,
<|"a" -> 44, "b" -> "z", "c" -> {3}|>,
<|"a" -> 4, "b" -> "x", "c" -> {4, 5}|>,
<|"a" -> 5, "b" -> "y", "c" -> {5, 6, 7}|>,
<|"a" -> 3, "b" -> "z", "c" -> {}|>}]
dataset[SortBy[-#a &]]
. $\endgroup$ – Leonid Shifrin Mar 20 '15 at 18:38dataset[SortBy[a]][Reverse]
;-) $\endgroup$ – mgamer Mar 20 '15 at 18:42dataset[SortBy[a] /* Reverse]
$\endgroup$ – alancalvitti Mar 20 '15 at 20:07Reverse @ Sort@ ds
$\endgroup$ – m_goldberg Mar 21 '15 at 3:08