[controllers/background] implement "sort by" preference
[controllers/background] implement "sort by" preference

Calculate the sort field from the GET parameter or from a cookie.

If the GET parameter is available, store it for the user in a cookie in
case the GET parameter is lost later.

GNOME/art-web