First to sort by a value, the record must be in the DB, then you can sort by it’s value…
You can try Saving it in the DB then sort by it…

I mean win/played *100, then have it save in the DB and sort by it