Skip to content

Commit e4df710

Browse files
committed
update code example
1 parent b91b3f5 commit e4df710

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

v0.3/handbook/libraries/stdlib.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,20 @@ title: "Standard Library"
2828
</ul>
2929
</td>
3030
<td>
31-
<code>// sorts the students by GPA
32-
[#student GPA]
33-
index = sort[for: GPA]</code>
31+
<code>
32+
{% raw %}
33+
Sorts the students by GPA
34+
35+
```
36+
search
37+
student = [#student GPA]
38+
index = sort[for: GPA]
39+
40+
bind
41+
[#ui/text sort: index, text: "{{student.name}} {{GPA}}"]
42+
```
43+
{% endraw %}
44+
</code>
3445
</td>
3546
</tr>
3647
</table>

0 commit comments

Comments
 (0)