cleaned up type / sort values