pyret-lang
pyret-lang copied to clipboard
documentation error
https://pyret.org/docs/latest/tables.html#%28part..Ordering.Tables%29
This example will first sort the data in increasing order on column1. If there are any duplicate values in column1, each such group of rows will be sorted in decreasing order by column2. If there are any duplicates in both columns, each remaining group will be sorted in increasing order by column3.
But the order expression is in the order column1, column3, column2. Just swap 3 and 2 in the displayed code.
Thanks to Henry Nieves at Brown for finding this error.