Octree Can Cause Incorrect Palette Mappings

Not sure how to describe this properly, but whenever indexing a palette using the default Octree method, Aseprite will prioritize palette entries at the bottom, instead of the top. This causes some colors ending up completely wrong whenever switching from RGB to Indexed color modes.
GIF 3-10-2024 3-32-23 PM
This currently happens in v1.3.5, and doesn’t happen at all using Table RGB 5 bits + Alpha 3 bits