Fleshed out type sorting