Sort spec helpers