Adding in local storage to keep the sort preference. Still kinda buggy.