Panu's proposal sorting

Manual Merge of Panu's Related Proposal Sorter.
 - Required due his branch to being a dozen commits behind
 - Still needs bugs worked out, such as
  - Sorts backwards
  - Age sorting does not work
  - Page scrolls to top after sort, which is not a good UX