added default sorting to spec