[GH-ISSUE #370] Errors in Python Catalog: items are not always in alphabetical order #169

Open
opened 2026-05-06 13:15:58 +02:00 by BreizhHardware · 0 comments

Originally created by @mobluse on GitHub (Jun 29, 2024).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/370

Describe the bug
In the Catalog the items are not always in alphabetical order, e.g. battery() comes after keydown(k) and before ldexp(x,i). There are other such sorting errors.

To Reproduce
Steps to reproduce the behavior:

  1. Click Home
  2. Choose Python
  3. Choose Python shell
  4. Click Toolbox
  5. Scroll down to Catalog
  6. Click Right
  7. Scroll down to keydown(k)
  8. See that battery() comes after keydown(k)
  9. Also see that battery_level() and battery_ischarging() are missing from Catalog.
  10. Also forward(x) and fmod(a,b) are in the wrong order.

Expected behavior
The list in Catalog should be sorted in alphabetical order like in Numworks and should contain
all functions, except maybe functions from some selected modules.

Screenshots
2024-06-29-224043_830x639_scrot
2024-06-29-231326_885x677_scrot

Device (please complete the following information):

Originally created by @mobluse on GitHub (Jun 29, 2024). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/370 **Describe the bug** In the Catalog the items are not always in alphabetical order, e.g. battery() comes after keydown(k) and before ldexp(x,i). There are other such sorting errors. **To Reproduce** Steps to reproduce the behavior: 1. Click Home 2. Choose Python 3. Choose Python shell 4. Click Toolbox 5. Scroll down to Catalog 6. Click Right 7. Scroll down to keydown(k) 8. See that battery() comes after keydown(k) 9. Also see that battery_level() and battery_ischarging() are missing from Catalog. 10. Also forward(x) and fmod(a,b) are in the wrong order. **Expected behavior** The list in Catalog should be sorted in alphabetical order like in Numworks and should contain all functions, except maybe functions from some selected modules. **Screenshots** ![2024-06-29-224043_830x639_scrot](https://github.com/UpsilonNumworks/Upsilon/assets/5777329/eaf5bcc2-b128-4b16-8e2f-65e56be2eb3f) ![2024-06-29-231326_885x677_scrot](https://github.com/UpsilonNumworks/Upsilon/assets/5777329/02201deb-c632-444f-8714-170511bed002) **Device (please complete the following information):** - The device on which you're running Upsilon (computer, n0110, n0100, etc...): web https://getupsilon.web.app/simulator - Upsilon Version: 1.0.0 - Upsilon commit: ed20d0e
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#169
No description provided.