Berry: is there a sort() method for list class? Google AI summary for search "tasmota berry sort list" suggests that? #23591
-
Hi, is Googles AI inventing things here? The official Berry docs do not mention a sort() method for lists (although it would be very useful). How would i sort a list (without implementing myself)? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Nope. Berry doesn't have a native sort function. This is pure hallucination. One better way is to attach a PDF export of the Berry language reference By the way, the short reference is here: https://berry.readthedocs.io/en/latest/source/en/berry_short_manual.html |
Beta Was this translation helpful? Give feedback.
-
The AI results you got are clearly "inspired" by Python with the parameter syntax Here's a simple example to sort a list:
|
Beta Was this translation helpful? Give feedback.
-
Is there anything wrong with having a native sort function in Berry? |
Beta Was this translation helpful? Give feedback.
Nope. Berry doesn't have a native sort function. This is pure hallucination.
One better way is to attach a PDF export of the Berry language reference
berry-readthedocs-io-en-latest.pdf
By the way, the short reference is here: https://berry.readthedocs.io/en/latest/source/en/berry_short_manual.html