Sort spec support helpers