Comics in comics aggregator are now sorted

By | March 22, 2022

If you use my comics aggregator, you may have noticed that a month or so ago the comics on your page started appearing in a different, random order each day. This was the result of an upgrade to the version of Perl being used by the aggregator. In the old version of Perl, the order of items in a hash was undefined but tended to be consistent across invocations of a script if the same items were in the hash. In the new version it’s randomized each time, probably to discourage people from depending on the order in the hash. I didn’t like that the order was changing each time I viewed my comics, so I modified the code to sort them.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.