remove "inherit"
add more properties
improve sort