I was able to create a box matrix, and fill to a new order and save to WMF in AS. When I read the file back in, the palette was sorted in accordance with the file. I then read the PAL file into Word, created a test to table, sorted the listing, saved in txt, changed the extension to PAL, and opened the rearranged palette file.
I was also able to edit the palette to new colors, and have the new colors changed to the drawing.

I tried a similar thing with the Xara X PAL. Read the file into word, converted the text to a table, sorted , and saved in text format. Thengave the txt file a PAL extension. Opened the file in Xara X with the sorted palette. I also loaded the PAL into XPal and exported to EPS, and opened that file to the new palette order.

Rich