Skip to content

Commit

Permalink
DOC: sort/4 stable sort example.
Browse files Browse the repository at this point in the history
Suggested by Pierpaolo Bernardi.
  • Loading branch information
JanWielemaker committed Jan 5, 2025
1 parent 492ce24 commit 54fdcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man/builtin.doc
Original file line number Diff line number Diff line change
Expand Up @@ -9393,8 +9393,8 @@ keysort(Pairs, Sorted) :- sort(1, @=<, Pairs, Sorted).
\end{code}

The following example sorts a list of rows, for example resulting from
csv_read_file/2) ascending on the 3th column and descending on the 4th
column:
csv_read_file/2) ascending on the 3rd column and descending on the 4th
column (for sets of rows where the 3rd column is equal):

\begin{code}
sort(4, @>=, Rows0, Rows1),
Expand Down

1 comment on commit 54fdcbe

@JanWielemaker
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on SWI-Prolog. There might be relevant details there:

https://swi-prolog.discourse.group/t/misleading-documentation-of-sort-4/8716/3

Please sign in to comment.