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 *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)