Fixed sorting to actually sort, missing properties in comparor

Missing ! on assert test that threw when it should not have