Added test_cardinal_sort
Added sorting to @cardinals