sorted hash issue