Fixed js so sort can be set from page and url

[#67323748]