message: Add default sort and sets cookie when sort changes
diff: @@ -6,6 +6,7 @@ module.exports = class State extends Backbone.Model
  defaults:
  view_mode: 'grid'
  lightbox: false
  + sort: 'updated_at'
  initialize: ->
  # set values from cookies
  @@ -13,6 +14,7 @@ module.exports = class State extends Backbone.Model
  @set(key, val) if val = cookies.get key
  @on 'change:view_mode', @setCookie
  + @on 'change:sort', @setCookie
  setCookie: (model, value)->
  cookies.set keys(model.changed)[0], value
  \ No newline at end of file
  