The attached patch fixes sorting by version or description in the package list. It also improves sorting by archive to fall back to name, and adds doc strings. Any comments? Best regards, Stefan Kangas