Changing from cookie to local storage to save current sorting on main page

                    
|Q            |A   |
|---          |--- |
|Bug Fix?     |n   |
|New Feature? |y   |
|BC Breaks?   |n   |
|Deprecations?|n   |
|Tests Pass?  |y   |
|Fixed Tickets|#265|
                    

This PR is linked to the previous one #418 and replace it