RT#17041 more sortification of hashes