Hello Everybody,
At some point of my app, I create a list containing three kind of data: color, hex color code, and hue value (the hex code and the hue value are correctly generated by the app elsewhere). Finally I store the list in TinyDB with a tag (say "cstm_1").
the first argument is shown as if it weren't a list. But I made a little experiment, bypassing the "select list item" block, refreshed everything, tried again, and I rather can see clearly that TinyDB actually contains lists
I finally found that the if cycle under the x>y condition was not correct. Basically it implements a bubble sort algoritm, but it was swapping single values, not lists. I didn't paid too much attention to this, because the cycle is supposed to begin after fetching x and y from lists. But believe it or not, after fixing the piece of code at the bottom, the one at the top worked fine too. The following is the working one