The attached patch adds a new parameter -mol=<file> that allows to specify a file containing a custom file extension order used for sorting files in solid archives. This can improve compression ratio in some cases. WinRAR has a similar feature - a file in the application install directory containing the extension list.
The supplied file must contain a list of extensions separated by spaces or newline characters.
The patch is a bit rough and may need some polishing.