I am working on online exams website. In this I have one associative array with key as name of subsection and values as score in respective subsection. So I want to sort that array in descending order according to values. But My values are in negative. I have used arsort function to sort associative arrays by values but it doesnt work on negative values. Actully I want to show subsections first having lowest score. I am providing my code. Please help me in this problem.
Array
(
    [sentence-equivalence] => -6
    [reading-comprehension] => -16
    [text-completion] => -20
    [algebra] => -24
    [geometry] => -26
    [arithmetic] => -31
    [common-data] => -37
    [statistics] => -38
)
 
     
     
    