SqlPartsDb: Sort part types

Fixes #458