Unfortunately I don’t think this is currently possible, but “Sort by hue” might save you some work in rearranging it. No simple sorting mode will ever give you correct results, since most palettes are more complex than just the colours in a simple order of some single component.
I also wish Aseprite would import palettes in the order they appear in the image. The different sorting modes already allow people to automatically sort it if they wish, it doesn’t need to be done by default.