Added sort by object type method so hashes always come first