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|
|License      |MIT |
|Doc PR       |    |
                    

This PR is linked to the previous one #418 and replace it
 Sent using [Gush](https://github.com/gushphp/gush)