Added sorting of risk functions [skip hazardlib]
Added sorting of risk functions [skip hazardlib]


Former-commit-id: 8bce051145ae31c373174957ee50c2f617a6164f
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine