Use the modified args to sort in displayio.Group

This commit is contained in:
James Carr 2021-08-23 12:34:13 +01:00
parent fdfcaf0b72
commit e35bcd348a
No known key found for this signature in database
GPG Key ID: 04CEE584D0B924E0
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ STATIC mp_obj_t displayio_group_obj_sort(size_t n_args, const mp_obj_t *pos_args
args[i] = pos_args[i];
}
args[0] = MP_OBJ_FROM_PTR(self->members);
return mp_obj_list_sort(n_args, pos_args, kw_args);
return mp_obj_list_sort(n_args, args, kw_args);
}
MP_DEFINE_CONST_FUN_OBJ_KW(displayio_group_sort_obj, 1, displayio_group_obj_sort);