summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-13 05:12:50 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-13 05:12:50 +0000
commit5c7683955994b965270598559e979c581ddc1950 (patch)
treeeb8744b2d6dc8f12a8a069df3199c7cca31dae08 /py/runtime.c
parent07205ec323ca98d1c23af51e099119954d0fe7a4 (diff)
sorted
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 02f965dd6..9815452fc 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -134,6 +134,7 @@ void rt_init(void) {
mp_map_add_qstr(&map_builtins, MP_QSTR_pow, rt_make_function_var(2, mp_builtin_pow));
mp_map_add_qstr(&map_builtins, MP_QSTR_print, rt_make_function_var(0, mp_builtin_print));
mp_map_add_qstr(&map_builtins, MP_QSTR_range, rt_make_function_var(1, mp_builtin_range));
+ mp_map_add_qstr(&map_builtins, MP_QSTR_sorted, (mp_obj_t)&mp_builtin_sorted_obj);
mp_map_add_qstr(&map_builtins, MP_QSTR_sum, rt_make_function_var(1, mp_builtin_sum));
next_unique_code_id = 1; // 0 indicates "no code"