If you are not already, you could use the GraphQL API that the web app uses, which provides sorting by viewers ASC. That would allow for much more up to date results than iterating the full list with the official API.
Not sure how happy Twitch is about external users, but it can be accessed quite easily with some tinkering.
Not sure how happy Twitch is about external users, but it can be accessed quite easily with some tinkering.