Issuable sorting should be stored per page

Description

For now issuable sorting is stored in cookies as a global value per domain.

Screenshot_20170309_191237

That means, if you set some sorting on a page A, it also will be set on a page B.

Steps to reproduce:

  1. Open Issues List page. Set sorting to, say, Priority. Wait until page is reloaded.
  2. Open Merge Requests page. The sorting is already set to Priority. Change it to anything else, then go back to the issues list page and you'll see the sorting is changed again.

Proposal

Store sorting values per issuable.

Edited by blackst0ne