pyret-lang icon indicating copy to clipboard operation
pyret-lang copied to clipboard

documentation error

Open shriram opened this issue 2 years ago • 3 comments

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.

shriram avatar Sep 20 '23 13:09 shriram