Fix Error 500 occuring when sorting merge requests by "More weight" or "Less weight"
This MR moves weight scopes & sort methods to Issue
.
This ensure MergeRequest
won't try to sort by weight, which would fail
since it doesn't have weight.
It also show the "sort by weight" links only when in the context of issues.
Fixes #673 (closed).