I\'ve a really weird problem. I\'m working with a panda DataFrame, and while trying to sort the values inside a key, sometimes i get the expected output, and sometimes I don