Saving portlet state

Saving portlet state

Hi guys,

is there a way to save a portlet state, after sorting(..in a cookie).

I don't see built-in functionality for this in docs :(