simplify sort hash's array sort