Sorts the array of proposals into ascending order