It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
Make a new bookmark with this as the URL code call it whatever you like.

When you are on your wishlist page, clicking the bookmark will toggle it to sort from low to high, high to low.

javascript:(function(){var%20elems=document.querySelectorAll('.list-inner');elems=elems[elems.length-1];var%20 prices=Array.prototype.slice.call(document.querySelectorAll('.product-row-wrapper'),0);prices.sort(function(a, b){if(elems.classList.contains('sorted')){return%20parseFloat(b.querySelector('._price.product-state__price'). textContent)-parseFloat(a.querySelector('._price.product-state__price').textContent);}return%20parseFloat(a.qu erySelector('._price.product-state__price').textContent)-parseFloat(b.querySelector('._price.product-state__pr ice').textContent);});elems.innerHTML='';elems.classList.contains('sorted')?elems.classList.remove('sorted'):e lems.classList.add('sorted');for(var%20i=0;i<prices.length;i++){elems.appendChild(prices[i]);}})();

Edit: due to forum format its add some spaces that will need deleting for it to work
Post edited December 30, 2022 by x-code
avatar
x-code: When you are on your wishlist page click the bookmark and it should sort from low to high
Cool, thanks! A second click to sort from high to low would've been nice, as it currently just blanks out the wishlist, but I'm not really complaining. I don't allow add-ons to run on the site, so a bookmarklet solution is very handy.
avatar
x-code: Edit: due to forum format its add some spaces that will need deleting for it to work
Note that the spaces are larger on the forum, but they're still there when copying. Paste the code into a text editor, then search and replace (space) with nothing. There should be four occurrences to get rid of.
avatar
x-code: When you are on your wishlist page click the bookmark and it should sort from low to high
avatar
Ice_Mage: Cool, thanks! A second click to sort from high to low would've been nice, as it currently just blanks out the wishlist, but I'm not really complaining. I don't allow add-ons to run on the site, so a bookmarklet solution is very handy.
avatar
x-code: Edit: due to forum format its add some spaces that will need deleting for it to work
avatar
Ice_Mage: Note that the spaces are larger on the forum, but they're still there when copying. Paste the code into a text editor, then search and replace (space) with nothing. There should be four occurrences to get rid of.
Have fixed the mistake of it blanking out the list on a 2nd click. I did experiment with a few add-ons but they didnt want to play nice with angular.

Have now updated the first post, multiple clicks will toggle sort order
avatar
x-code: Have fixed the mistake of it blanking out the list on a 2nd click.
Have now updated the first post, multiple clicks will toggle sort order
Thank you again!
avatar
x-code: I did experiment with a few add-ons but they didnt want to play nice with angular.
I figured a user script manager like ViolentMonkey can run any script the browser can, but since I don't run add-ons on the site, I haven't actually tried.
Edit:
avatar
x-code: When you are on your wishlist page
I wanted to add this is also handy if you want to buy games for friends and you're looking at their wishlist pages.
Post edited December 30, 2022 by Ice_Mage
avatar
x-code: I did experiment with a few add-ons but they didnt want to play nice with angular.
avatar
Ice_Mage: I figured a user script manager like ViolentMonkey can run any script the browser can, but since I don't run add-ons on the site, I haven't actually tried.
Edit:
avatar
x-code: When you are on your wishlist page
avatar
Ice_Mage: I wanted to add this is also handy if you want to buy games for friends and you're looking at their wishlist pages.
yes works on other peoples wishlist pages aswell.

Userscripts have document run times however even setting code to run at "document-end" the angular code on this site would still run after the document had finished loading, rendering any script fairly useless as they would trigger before the angular had rendered the code that was needed.

But yes, best to leave add-ons off as i dont want to lose my games, you should've seen me read the community api add-ons for galaxy...
Nice. Had to remove the spaces before it worked, but now it works great. Thanks
Belated thanks for sharing.
I also replaced all the %20 with a space for each.