Fixes #95 (storing of sorting). We now have also full controlled sorting.